|
@@ -270,8 +270,10 @@ class UserController extends FrontController
|
|
|
*/
|
|
|
function checkLogin($m_id,$token){
|
|
|
$member = WxUser::where('id',$m_id)->select(['id','token_str'])->first();
|
|
|
-
|
|
|
- if ($member['token_str'] != $token || empty($member)) {
|
|
|
+ if(empty($member)){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if ($member['token_str'] != $token) {
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|