ソースを参照

1.首页文字修改的问题
2.联系我们的电话号码

ChenWuJie 4 年 前
コミット
b57df3c01b

+ 4 - 3
app/Http/Controllers/Api/V1/CommonController.php

xqd
@@ -334,11 +334,12 @@ 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);
         $data = [
             'banners' => $banners,
-            'notices' => [
-                '宝妈小程序正式公测上线啦!',
-            ],
+            'notices' => $notices_arr,
         ];
 
         $data = array_merge($data, $systemConfig);

+ 5 - 0
app/Http/Controllers/Api/V2/CommonController.php

xqd xqd
@@ -11,6 +11,7 @@ namespace App\Http\Controllers\Api\V2;
 use App\Http\Controllers\Controller;
 use App\Models\Article;
 use App\Models\Order;
+use App\Models\SystemConfig;
 use App\Models\User;
 use App\Models\Docter;
 use EasyWeChat\Factory;
@@ -1238,4 +1239,8 @@ class CommonController extends Controller
         return out();
 
     }
+    public function contactUsPhone(){
+        $phone = SystemConfig::where('key','contact_us_phone')->value('value');
+        return out($phone);
+    }
 }