{"id":97,"date":"2011-09-01T17:53:00","date_gmt":"2011-09-01T09:53:00","guid":{"rendered":"http:\/\/www.uut8.com\/?p=97"},"modified":"2011-09-01T17:53:00","modified_gmt":"2011-09-01T09:53:00","slug":"%e5%85%b6%e5%ae%83%e8%af%ad%e8%a8%80%e5%a6%82jsp%e7%ad%89%e8%b0%83%e7%94%a8ucenter%e7%9a%84%e5%90%8c%e6%ad%a5%e7%99%bb%e5%bd%95%e6%8e%a5%e5%8f%a3","status":"publish","type":"post","link":"https:\/\/www.uut8.com\/?p=97","title":{"rendered":"\u5176\u5b83\u8bed\u8a00\u5982jsp\u7b49\u8c03\u7528UCenter\u7684\u540c\u6b65\u767b\u5f55\u63a5\u53e3"},"content":{"rendered":"<p>\u4eca\u5929\u7ed9\u4e00\u4e2a\u7ad9\u957f\u5904\u7406jsp\u8c03\u7528UCenter\u7684\u540c\u6b65\u767b\u5f55\u63a5\u53e3\uff0c\u4e00\u76f4\u4e0d\u8fd4\u56deDiscuz!\u7684\u503c\uff0c\u53ea\u6709\u5176\u5b83\u7684\u5e94\u7528\u7684\uff0c\u7ecf\u8fc7\u6392\u67e5\uff0c\u8be5\u7ad9\u957f\u7528\u7684\u662fDiscuz!7.2\u7248\u672c\uff0cUCenter\u7248\u672c\u4e3a1.5\uff0ccontrol\/user.php\u811a\u672c\u91cc\uff0c<\/p>\n<pre class=\"brush:php\">function onsynlogin() {\n\t\t$this-&gt;init_input();\n\t\t$uid = $this-&gt;input('uid');\n\t\tif($this-&gt;app['synlogin']) {\n\t\t\tif($this-&gt;user = $_ENV['user']-&gt;get_user_by_uid($uid)) {\n\t\t\t\t$synstr = '';\n\t\t\t\tforeach($this-&gt;cache['apps'] as $appid =&gt; $app) {\n\t\t\t\t\tif($app['synlogin'] &amp;&amp; $app['appid'] != $this-&gt;app['appid']) {\n\t\t\t\t\t\t$synstr .= '&lt;script type=\"text\/javascript\" src=\"'.$app['url'].'\/api\/'.$app['apifilename'].'?time='.$this-&gt;time.'&amp;code='.urlencode($this-&gt;authcode('action=synlogin&amp;username='.$this-&gt;user['username'].'&amp;uid='.$this-&gt;user['uid'].'&amp;password='.$this-&gt;user['password'].\"&amp;time=\".$this-&gt;time, 'ENCODE', $app['authkey'])).'\" reload=\"1\"&gt;&lt;\/script&gt;';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn $synstr;\n\t\t\t}\n\t\t}\n\t\treturn '';\n\t}<\/pre>\n<p>if($app[&#8216;synlogin&#8217;] &amp;&amp; $app[&#8216;appid&#8217;] != $this-&gt;app[&#8216;appid&#8217;])\u505a\u4e86\u5224\u65ad\uff0c\u5373\u8c03\u7528\u7684appid\u76f8\u540c\u7684\u7684\u8bdd\uff0c\u4e0d\u4f1a\u6709\u8fd4\u56de\u503c\uff0cUCenter1.6.0\u7248\u672c\u5df2\u7ecf\u53bb\u6389\u4e86&amp;&amp; $app[&#8216;appid&#8217;] != $this-&gt;app[&#8216;appid&#8217;]\u8fd9\u4e2a\u6761\u4ef6\uff0c\u53bb\u6389\u540e\uff0c\u5c31\u80fd\u5f97\u5230\u5bf9\u5e94\u5e94\u7528\u7684\u8fd4\u56de\u503c\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u7ed9\u4e00\u4e2a\u7ad9\u957f\u5904\u7406jsp\u8c03\u7528UCenter\u7684\u540c\u6b65\u767b\u5f55\u63a5\u53e3\uff0c\u4e00&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[27,36,38],"class_list":["post-97","post","type-post","status-publish","format-standard","hentry","category-ucenter","tag-jspucenter","tag-ucenter"],"_links":{"self":[{"href":"https:\/\/www.uut8.com\/index.php?rest_route=\/wp\/v2\/posts\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.uut8.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.uut8.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.uut8.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.uut8.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=97"}],"version-history":[{"count":0,"href":"https:\/\/www.uut8.com\/index.php?rest_route=\/wp\/v2\/posts\/97\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.uut8.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.uut8.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.uut8.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}