|
@@ -547,7 +547,7 @@ exit;
|
|
|
if ($loginToday){
|
|
|
\app\common\model\User::update(["is_online"=>1,"onlinetime"=>time()],["id"=>$info["To_Account"]]);
|
|
|
}else{
|
|
|
- \app\common\model\User::update(["is_online"=>1,"onlinetime"=>time(),'login_day'=>Db::raw('login_day+1')],["id"=>$info["To_Account"]]);
|
|
|
+ \app\common\model\User::update(["is_online"=>1,"onlinetime"=>time()],["id"=>$info["To_Account"]]);
|
|
|
}
|
|
|
|
|
|
$res = [];
|
|
@@ -688,7 +688,7 @@ exit;
|
|
|
// $res["ErrorInfo"] = "";
|
|
|
// echo json_encode($res);
|
|
|
// break;
|
|
|
- case 'Group.CallbackBeforeSendMsg': // 群内发送消息之前
|
|
|
+ /*case 'Group.CallbackBeforeSendMsg': // 群内发送消息之前
|
|
|
|
|
|
$config = config("wxMiniProgram");
|
|
|
$access_token_url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=".$config["appid"]."&secret=".$config["secret"];
|
|
@@ -740,7 +740,7 @@ exit;
|
|
|
}
|
|
|
// \app\common\model\Test::update(["content"=>json_encode($res)],["id"=>1]);
|
|
|
echo json_encode($res);exit;
|
|
|
- break;
|
|
|
+ break;*/
|
|
|
default:
|
|
|
break;
|
|
|
}
|