mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-05 03:58:39 +00:00
修复报错
1. 修复Bark通知,会出现code找不到的报错; 2. 修改邮箱与推送重复的问题; 3. 修复服务监视ServiceTimer报错的问题; 4. 修复不发使用用户编辑页面的问题; 5. 修复订单回调处理出错的问题
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user