zilong před 4 roky
rodič
revize
9e26c351d8

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

xqd xqd xqd
@@ -14,6 +14,7 @@ use App\Models\HelpInfo;
 use App\Models\Icons;
 use App\Models\Order;
 use App\Models\OrderPatient;
+use App\Models\SystemConfig;
 use App\Models\User;
 use EasyWeChat\Factory;
 use Cache;
@@ -305,6 +306,7 @@ class CommonController extends Controller
 
     public function configList()
     {
+        $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();
         $data = [
             'banners' => [
                 'https://t5.9026.com/img/banner1.png',
@@ -316,6 +318,8 @@ class CommonController extends Controller
             ],
         ];
 
+        $data = array_merge($data, $systemConfig);
+
         return out($data);
     }