【程序目录】修复消息管理bug

This commit is contained in:
吴昊天 2022-08-22 11:35:03 +08:00
parent 0f87011364
commit 1e12f7f9b2
3 changed files with 5 additions and 0 deletions

View File

@ -86,6 +86,7 @@ class SystemNotification extends AuthController
['wechat_id', ''],
['routine_id', ''],
['mark', ''],
['sms_id', ''],
]);
if (!$data['id']) return app('json')->fail(100100);
if ($this->services->saveData($data)) {

View File

@ -170,6 +170,7 @@ class SystemNotificationServices extends BaseServices
$update['name'] = $data['name'];
$update['title'] = $data['title'];
$update['is_sms'] = $data['is_sms'];
$update['sms_id'] = $data['sms_id'];
$res = $this->dao->update((int)$id, $update);
break;
case 'is_wechat':

View File

@ -628,6 +628,9 @@ class UserServices extends BaseServices
}
$item['labels'] = $userlabel[$item['uid']] ?? '';
$item['isMember'] = $item['is_money_level'] > 0 ? 1 : 0;
if (strpos($item['avatar'], '/statics/system_images/') !== false) {
$item['avatar'] = set_file_url($item['avatar']);
}
}
}