|
@@ -164,6 +164,10 @@ class Seller extends Common |
|
@@ -164,6 +164,10 @@ class Seller extends Common |
|
164
|
$cuisine = !empty($data['cuisine']) ? implode(',', array_keys($data['cuisine'])) : '';
|
164
|
$cuisine = !empty($data['cuisine']) ? implode(',', array_keys($data['cuisine'])) : '';
|
|
165
|
$type = !empty($data['type']) ? implode(',', array_keys($data['type'])) : '';
|
165
|
$type = !empty($data['type']) ? implode(',', array_keys($data['type'])) : '';
|
|
166
|
$mode = !empty($data['mode']) ? implode(',', array_keys($data['mode'])) : '';
|
166
|
$mode = !empty($data['mode']) ? implode(',', array_keys($data['mode'])) : '';
|
|
|
|
167
|
+ $sms_code = !empty($data['sms_code']) ? $data['sms_code'] : '';
|
|
|
|
168
|
+
|
|
|
|
169
|
+ if($sms_code)
|
|
|
|
170
|
+ $res_sms_code= file_get_contents(ON_LINE.'App.SendSMS.SetSellerSmsTemplate&sid='.$data['sellerid'].'&sms_id='.$sms_code);
|
|
167
|
|
171
|
|
|
168
|
if($cuisine)
|
172
|
if($cuisine)
|
|
169
|
$res_cuisine= file_get_contents(ON_LINE.'App.Seller.SetSellerCuisine&sellerid='.$data['sellerid'].'&cid='.$cuisine);
|
173
|
$res_cuisine= file_get_contents(ON_LINE.'App.Seller.SetSellerCuisine&sellerid='.$data['sellerid'].'&cid='.$cuisine);
|
|
@@ -228,8 +232,23 @@ class Seller extends Common |
|
@@ -228,8 +232,23 @@ class Seller extends Common |
|
228
|
}
|
232
|
}
|
|
229
|
$this->assign('mode',$mode);//获取所有菜系
|
233
|
$this->assign('mode',$mode);//获取所有菜系
|
|
230
|
|
234
|
|
|
231
|
- $this->assign ('data',$data); //商户信息
|
|
|
|
232
|
- $this->assign ( 'title','商户菜品配置' );
|
235
|
+ //获取商家已选短信模板
|
|
|
|
236
|
+ $template = file_get_contents(ON_LINE.'App.Reserve.SellerInfo&seller_id='.$data['id']);
|
|
|
|
237
|
+ $template = json_decode($template,TRUE);
|
|
|
|
238
|
+ //获取商家已有地图显示方式
|
|
|
|
239
|
+ $template_list = file_get_contents(ON_LINE.'App.SendSMS.GetSmsTemplate');
|
|
|
|
240
|
+ $template_list = json_decode($template_list,TRUE);
|
|
|
|
241
|
+ //组装数据
|
|
|
|
242
|
+ foreach ($template_list['data'] as $key => $value) {
|
|
|
|
243
|
+ if($value['template_code']==$template['data']['setting']['template_code']){
|
|
|
|
244
|
+ $template_list['data'][$key]['checked'] = 1;
|
|
|
|
245
|
+ }
|
|
|
|
246
|
+ }
|
|
|
|
247
|
+ $this->assign('template_list',$template_list['data']);//获取短信模板列表
|
|
|
|
248
|
+
|
|
|
|
249
|
+ //商户信息
|
|
|
|
250
|
+ $this->assign ('data',$data);
|
|
|
|
251
|
+ $this->assign ( 'title','商户信息配置' );
|
|
233
|
return $this->fetch();
|
252
|
return $this->fetch();
|
|
234
|
}
|
253
|
}
|
|
235
|
|
254
|
|