作者 Administrator

网页授权

@@ -231,7 +231,10 @@ class Auth @@ -231,7 +231,10 @@ class Auth
231 231
232 //直接登录会员 232 //直接登录会员
233 $this->direct($user->id); 233 $this->direct($user->id);
234 - 234 + if (!$user->open_id && $open_id = session("open_id")){
  235 + $user->open_id = $open_id;
  236 + $user->save();
  237 + }
235 return true; 238 return true;
236 } 239 }
237 240