where('openid', $openid) ->first(); } public static function updateUserInfo($openid, $data) { return self::uniacid() ->where('openid', $openid) ->update($data); } public static function updateData($uid, $data) { self::uniacid() ->where('member_id', $uid) ->update($data); } public static function getMemberByToken($token) { return self::uniacid() ->where('access_token', $token) ->first(); } }