作者 anyv
1 个管道 的构建 通过 耗费 21 秒

5

@@ -58,6 +58,7 @@ class IndexController extends HomeBaseController @@ -58,6 +58,7 @@ class IndexController extends HomeBaseController
58 * @param $appId 58 * @param $appId
59 */ 59 */
60 protected function wechatUserLogin($wechat_user,$findThirdPartyUser,$openid,$appId){ 60 protected function wechatUserLogin($wechat_user,$findThirdPartyUser,$openid,$appId){
  61 + dump($wechat_user);
61 $currentTime = time(); 62 $currentTime = time();
62 $ip = $this->request->ip(0, true); 63 $ip = $this->request->ip(0, true);
63 $token = cmf_generate_user_token($findThirdPartyUser['user_id'], 'public'); 64 $token = cmf_generate_user_token($findThirdPartyUser['user_id'], 'public');
@@ -204,7 +204,7 @@ class WeChatBaseController extends BaseController @@ -204,7 +204,7 @@ class WeChatBaseController extends BaseController
204 */ 204 */
205 public function checkWeChatUserLogin() 205 public function checkWeChatUserLogin()
206 { 206 {
207 - /*$user = Db::name('user')->where('id',6)->find(); 207 + /*$user = Db::name('user')->where('id',158)->find();
208 cmf_update_current_user($user);*/ 208 cmf_update_current_user($user);*/
209 $userId = cmf_get_current_user_id(); 209 $userId = cmf_get_current_user_id();
210 if (empty($userId)) { 210 if (empty($userId)) {