diff --git a/app/common/model/wxapp/Setting.php b/app/common/model/wxapp/Setting.php index b163867b..6f27bd81 100644 --- a/app/common/model/wxapp/Setting.php +++ b/app/common/model/wxapp/Setting.php @@ -140,6 +140,10 @@ class Setting extends BaseModel 'app_id' => '', // 小程序AppSecret 'app_secret' => '', + //广场动态 + 'square_dynamic' => true, + //精选商户 + 'select_mechant' => true, //同城送 'same_city' => true, //新人首礼 diff --git a/app/store/model/wxapp/Setting.php b/app/store/model/wxapp/Setting.php index 7cf4b2b7..b25bc9da 100644 --- a/app/store/model/wxapp/Setting.php +++ b/app/store/model/wxapp/Setting.php @@ -44,7 +44,7 @@ class Setting extends SettingModel return $model->save([ 'key' => $key, 'describe' => $this->describe[$key], - 'values' => helper::pick($values, ['enabled', 'app_id', 'app_secret', 'same_city', 'new_first_gift', 'big_brand', 'new_product', 'ranking_list', 'service']), + 'values' => helper::pick($values, ['enabled', 'app_id', 'app_secret', 'square_dynamic','select_mechant','same_city', 'new_first_gift', 'big_brand', 'new_product', 'ranking_list', 'service']), 'update_time' => time(), 'store_id' => self::$storeId, ]);