feature/main20240421
lqmac 6 months ago
parent 3b74ef9ca8
commit ee1e563f39
  1. 4
      app/common/model/wxapp/Setting.php
  2. 2
      app/store/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,
//新人首礼

@ -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,
]);

Loading…
Cancel
Save