| | |
| | | /** |
| | | * 获取指定项设置 |
| | | */ |
| | | public static function getItem($key, $app_id = null) |
| | | public static function getItem($key, $app_id = null,$shop_supplier_id=0) |
| | | { |
| | | $data = self::getAll($app_id); |
| | | if (!isset($data[$key])&&strpos($key, 'nav_')!==false){ |
| | | if ($shop_supplier_id!=0){ |
| | | return []; |
| | | }else{ |
| | | $key = 'nav'; |
| | | } |
| | | |
| | | } |
| | | $data_key = $data[$key]; |
| | | if(isset($data_key)){ |
| | | $data_key = $data[$key]['values']; |
| | |
| | | 'is_shopping_gift' => '0', // 是否开启购物送消费券 |
| | | 'gift_ratio' => '100', // 是否开启购物送消费券 |
| | | 'is_shopping_discount' => '0', // 是否允许下单使用消费券抵扣 |
| | | 'give_away'=> 0,//直推赠送 |
| | | 'is_trans_balance' => '0', // 是否允许转换余额 |
| | | 'discount' => [ // 消费券抵扣 |
| | | 'discount_ratio' => '0.01', // 消费券抵扣比例 |