mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Push.php
This commit is contained in:
parent
b176423eff
commit
6e90f242e1
@ -118,7 +118,7 @@ class Push extends Controller
|
|||||||
if (is_string(($result = $this->$method()))) return $result;
|
if (is_string(($result = $this->$method()))) return $result;
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
sysoplog('微信接口', "{$e->getFile()}:{$e->getLine()} [{$e->getCode()}] {$e->getMessage()}");
|
$this->app->log->error("{$e->getFile()}:{$e->getLine()} [{$e->getCode()}] {$e->getMessage()}");
|
||||||
}
|
}
|
||||||
return 'success';
|
return 'success';
|
||||||
}
|
}
|
||||||
@ -320,7 +320,7 @@ class Push extends Controller
|
|||||||
$user = WechatService::WeChatUser()->getUserInfo($this->openid);
|
$user = WechatService::WeChatUser()->getUserInfo($this->openid);
|
||||||
return FansService::instance()->set(array_merge($user, ['subscribe' => '1', 'appid' => $this->appid]));
|
return FansService::instance()->set(array_merge($user, ['subscribe' => '1', 'appid' => $this->appid]));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
sysoplog('微信接口', __METHOD__ . " {$this->openid} get userinfo faild. {$e->getMessage()}");
|
$this->app->log->error(__METHOD__ . " {$this->openid} get userinfo faild. {$e->getMessage()}");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user