mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-23 11:58:41 +08:00
Merge branch 'koogua/I399X5' into develop
This commit is contained in:
commit
c2d0316281
@ -263,11 +263,7 @@ class UserConsoleController extends Controller
|
||||
|
||||
$subscribe = $subscribeRepo->findByUserId($this->authUser->id);
|
||||
|
||||
$subscribed = 0;
|
||||
|
||||
if ($subscribe) {
|
||||
$subscribed = $subscribe->deleted == 0 ? 1 : 0;
|
||||
}
|
||||
$subscribed = $subscribe ? 1 : 0;
|
||||
|
||||
$this->view->pick('user/console/subscribe');
|
||||
$this->view->setVar('subscribed', $subscribed);
|
||||
|
@ -16,9 +16,6 @@ class AccountLogin extends LogicService
|
||||
|
||||
public function handleTask(TaskModel $task)
|
||||
{
|
||||
/**
|
||||
* @todo 鉴于微信消息模板4.30下线,暂时下线登录通知
|
||||
*/
|
||||
$wechatOA = $this->getSettings('wechat.oa');
|
||||
|
||||
if ($wechatOA['enabled'] == 0) return;
|
||||
@ -31,7 +28,7 @@ class AccountLogin extends LogicService
|
||||
|
||||
$subscribe = $subscribeRepo->findByUserId($userId);
|
||||
|
||||
if ($subscribe && $subscribe->deleted == 0) {
|
||||
if ($subscribe) {
|
||||
|
||||
$notice = new WeChatAccountLoginNotice();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user