zhangjidong 4 天之前
父节点
当前提交
f158229410
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      modules/admin/controllers/SaasController.php

+ 4 - 0
modules/admin/controllers/SaasController.php

@@ -453,6 +453,7 @@ class SaasController extends BaseController
     {
         if (Yii::$app->request->getIsPost()) {
             $protocol = post_params('protocol', '');
+            $is_debug = post_params('is_debug', 0);
             $describe = post_params('describe', '');
             $name = post_params('name', '');
             $logo = post_params('logo', '');
@@ -465,6 +466,7 @@ class SaasController extends BaseController
             $shenhe = post_params('shenhe', 0);
             $is_show_kefu_download = post_params('is_show_kefu_download', 1);
 //            $tencent_map_key = post_params('tencent_map_key', '');
+            Option::set('is_debug', $is_debug, 0, 'saas');
             Option::set('protocol', $protocol, 0, 'saas');
             Option::set('store_apply_agreement', $protocol, 0, 'saas');
             Option::set('describe', $describe, 0, 'saas');
@@ -485,6 +487,7 @@ class SaasController extends BaseController
                 'msg' => '保存成功',
             ]);
         } else {
+            $is_debug = Option::get('is_debug', 0, 'saas', '');
             $protocol = Option::get('protocol', 0, 'saas', '');
             $describe = Option::get('describe', 0, 'saas', '');
             $name = Option::get('name', 0, 'saas', '');
@@ -502,6 +505,7 @@ class SaasController extends BaseController
                 'code' => 0,
                 'msg' => 'success',
                 'data' => [
+                    'is_debug'=>$is_debug['value'],
                     'protocol' => $protocol['value'],
                     'describe' => $describe['value'],
                     'name' => $name['value'],