mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-31 15:00:52 +00:00
【程序目录】修复消息管理bug
This commit is contained in:
parent
0f87011364
commit
1e12f7f9b2
@ -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)) {
|
||||
|
||||
@ -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':
|
||||
|
||||
@ -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']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user