xxxrrrdddd 3 years ago
parent
commit
dd16a4d4a8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/api/controller/Common.php

+ 2 - 2
application/api/controller/Common.php

@@ -276,8 +276,8 @@ class Common extends Api
             'service_work_time'=>\config('site.service_work_time'),
             'system_sms_open'=>\config('site.system_sms_open')?true:false,
             'disable_send_province'=>Area::whereIn('id',\config('site.disable_send_province')?:0)->field('id,name')->select(),
-            'system_index_tr'=>config('site.system_index_tr')?:1,
-            'system_index_m1'=>config('site.system_index_m1')?:1,
+            'system_index_tr'=>intval(config('site.system_index_tr')?:1),
+            'system_index_m1'=>intval(config('site.system_index_m1')?:1),
         ];
         $this->success('',$data);
     }