修复报错

1. 修复Bark通知,会出现code找不到的报错;
2. 修改邮箱与推送重复的问题;
3. 修复服务监视ServiceTimer报错的问题;
4. 修复不发使用用户编辑页面的问题;
5. 修复订单回调处理出错的问题
This commit is contained in:
兔姬桑
2020-04-22 04:36:35 +08:00
parent 672dc1ba29
commit 07df6c542d
13 changed files with 87 additions and 65 deletions

View File

@@ -2044,15 +2044,18 @@ EOF;
{
if(self::$systemConfig['is_notification']){
$result = PushNotification::send('这是测试的标题', 'SSRPanel_OM测试内容');
if($result == FALSE){
return Response::json(['status' => 'fail', 'message' => '发送失败,请重新尝试!']);
}
switch(self::$systemConfig['is_notification']){
case 1:
case 'serverChan':
if(!$result->errno){
return Response::json(['status' => 'success', 'message' => '发送成功,请查看手机是否收到推送消息']);
}else{
return Response::json(['status' => 'fail', 'message' => $result? $result->errmsg : '未知']);
}
break;
case 2:
case 'bark':
if($result->code == 200){
return Response::json(['status' => 'success', 'message' => '发送成功,请查看手机是否收到推送消息']);
}else{