mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-12 19:12:49 +00:00
类型错误
This commit is contained in:
parent
91863dba3b
commit
880c47d5eb
@ -160,7 +160,7 @@ class WechatUser extends BaseModel
|
|||||||
if (isset($userInfo['unionid'])) {
|
if (isset($userInfo['unionid'])) {
|
||||||
$wechatInfo = self::where('unionid', $userInfo['unionid'])->find();
|
$wechatInfo = self::where('unionid', $userInfo['unionid'])->find();
|
||||||
if ($wechatInfo) {
|
if ($wechatInfo) {
|
||||||
return self::edit($userInfo, $userInfo['unionid'], 'unionid');
|
return self::edit(is_object($userInfo) ? $userInfo->toArray() : $userInfo, $userInfo['unionid'], 'unionid');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self::beginTrans();
|
self::beginTrans();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user