ソースを参照

Merge branch 'master' of ssh://git.9026.com:2212/swdz-WangHaijun/BaoMa

zilong 4 年 前
コミット
3976e66852
1 ファイル変更1 行追加2 行削除
  1. 1 2
      app/Http/Controllers/Api/V1/CommonController.php

+ 1 - 2
app/Http/Controllers/Api/V1/CommonController.php

xqd
@@ -334,9 +334,8 @@ class CommonController extends Controller
     {
         $systemConfig = SystemConfig::whereIn('key', ['phone_notice', 'chat_notice', 'clinic_notice', 'vaccine_notice', 'nurse_notice', 'poster', 'phone', 'protocol', 'recharge_notice', 'service_protocol', 'login_protocol', 'recharge_protocol'])->pluck('value', 'key')->toArray();
         $banners = Banner::get();
-        $notices_arr = [];
         $notices = SystemConfig::where('key','notices')->value('value');
-        array_push($notices_arr,$notices);
+        $notices_arr = explode(',',$notices);
         $data = [
             'banners' => $banners,
             'notices' => $notices_arr,