|
@@ -92,19 +92,19 @@ class WechatCommonService extends BaseService
|
|
return $back;
|
|
return $back;
|
|
}
|
|
}
|
|
|
|
|
|
- private static function updateUserActivityTime($app,$appid,$opendId)
|
|
|
|
|
|
+ private static function updateUserActivityTime($app,$appid,$openId)
|
|
{
|
|
{
|
|
|
|
|
|
- $info = WechatOfficialUserInfo::query()->where('mp_openid',$opendId)->where('gzh_appid',$appid)->first();
|
|
|
|
|
|
+ $info = WechatOfficialUserInfo::query()->where('mp_openid',$openId)->where('gzh_appid',$appid)->first();
|
|
$data = [
|
|
$data = [
|
|
- 'mp_openid' => $opendId,
|
|
|
|
|
|
+ 'mp_openid' => $openId,
|
|
'gzh_appid' => $appid,
|
|
'gzh_appid' => $appid,
|
|
'active_at' => time(),
|
|
'active_at' => time(),
|
|
];
|
|
];
|
|
if (is_empty($info)){
|
|
if (is_empty($info)){
|
|
- $user = $app->user->get();
|
|
|
|
|
|
+ $user = $app->user->get($openId);
|
|
$data = [
|
|
$data = [
|
|
- 'mp_openid' => $opendId,
|
|
|
|
|
|
+ 'mp_openid' => $openId,
|
|
'gzh_appid' => $appid,
|
|
'gzh_appid' => $appid,
|
|
'unionid' => $user['unionid'],
|
|
'unionid' => $user['unionid'],
|
|
'is_subscribe' => $user['subscribe'],
|
|
'is_subscribe' => $user['subscribe'],
|