问题原因:签到提醒设置后未发送问题
修改文件:app\listener\system\timer\SystemTimer
修改方法:implement_timer()
case 'sign_remind_time' : // 用户签到提醒
/** @var UserSignServices $service */
$service = app()->make(UserSignServices::class);
return $service->userSignRemind();
break;
修改文件:app\listener\notice\Notice
修改方法:handle()
//用户签到提醒
case 'sign_remind_time':
$site_name = sys_config('site_name');
if ($data['phone']) {
//短信
$NoticeSms->sendSms($data['phone'], compact('site_name'), 'SIGN_REMIND_TIME');
}
//站内信
$SystemMsg->sendMsg($data['uid'], ['site_name' => $site_name]);
//模板消息小程序订阅消息
$RoutineTemplateList->sendSignRemind($data['uid']);
修改文件:app\services\message\notice\RoutineTemplateListService
/**
* 用户签到发送消息提醒
* @param int $uid
* @return bool|mixed
*/
public function sendSignRemind(int $uid)
{
return $this->sendTemplate('SIGN_REMIND_TIME', $uid, [
'thing3' => '每日签到',
'thing2' => '今天还没有签到哟!'
], '/pages/users/user_sgin/index');
}
修改文件:config/template
修改文件:config/sms