mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-26 20:52:44 +08:00
Merge branch 'koogua/I399X5' into demo
This commit is contained in:
commit
2ca092b4e2
@ -16,9 +16,9 @@ class AccountLogin extends LogicService
|
||||
|
||||
public function handleTask(TaskModel $task)
|
||||
{
|
||||
$wechatOA = $this->getSettings('wechat.oa');
|
||||
$wechatNoticeEnabled = $this->wechatNoticeEnabled();
|
||||
|
||||
if ($wechatOA['enabled'] == 0) return;
|
||||
if (!$wechatNoticeEnabled) return;
|
||||
|
||||
$params = $task->item_info;
|
||||
|
||||
@ -38,9 +38,9 @@ class AccountLogin extends LogicService
|
||||
|
||||
public function createTask(UserModel $user)
|
||||
{
|
||||
$wechatOA = $this->getSettings('wechat.oa');
|
||||
$wechatNoticeEnabled = $this->wechatNoticeEnabled();
|
||||
|
||||
if ($wechatOA['enabled'] == 0) return;
|
||||
if (!$wechatNoticeEnabled) return;
|
||||
|
||||
$task = new TaskModel();
|
||||
|
||||
|
@ -88,7 +88,7 @@ Abstract class Smser extends Service
|
||||
{
|
||||
$template = json_decode($this->settings['template'], true);
|
||||
|
||||
return $template[$code] ?? null;
|
||||
return $template[$code]['id'] ?? null;
|
||||
}
|
||||
|
||||
protected function getSignature()
|
||||
|
@ -97,7 +97,7 @@ abstract class WeChatNotice extends Service
|
||||
{
|
||||
$template = json_decode($this->settings['notice_template'], true);
|
||||
|
||||
return $template[$code] ?? null;
|
||||
return $template[$code]['id'] ?? null;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user