소스 검색

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

吴昊天 3 년 전
부모
커밋
1e12f7f9b2

+ 1 - 0
crmeb/app/adminapi/controller/v1/setting/SystemNotification.php

@@ -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)) {

+ 1 - 0
crmeb/app/services/message/SystemNotificationServices.php

@@ -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':

+ 3 - 0
crmeb/app/services/user/UserServices.php

@@ -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']);
+                }
             }
         }