|
@@ -172,6 +172,10 @@ class MemberSalesController extends HomeBaseController |
|
@@ -172,6 +172,10 @@ class MemberSalesController extends HomeBaseController |
172
|
$typeInfo['groupD'][] = $v;
|
172
|
$typeInfo['groupD'][] = $v;
|
173
|
}
|
173
|
}
|
174
|
}
|
174
|
}
|
|
|
175
|
+ // 生成输入订单确认码页面短网址
|
|
|
176
|
+// $url = url('portal/Order/to_pay',[],true,true);
|
|
|
177
|
+// $short_url = json_decode(file_get_contents('http://suo.im/api.php?format=json&url='.urlencode($url)),true)['url'];
|
|
|
178
|
+// Cache::set('short_url',$short_url);
|
175
|
$this->assign('default',$default);
|
179
|
$this->assign('default',$default);
|
176
|
$this->assign('goodsList',json_encode($goodsList));
|
180
|
$this->assign('goodsList',json_encode($goodsList));
|
177
|
$this->assign('myOrderUrl',url('portal/MemberSales/deal',['id'=>$id]));
|
181
|
$this->assign('myOrderUrl',url('portal/MemberSales/deal',['id'=>$id]));
|
|
@@ -231,17 +235,15 @@ class MemberSalesController extends HomeBaseController |
|
@@ -231,17 +235,15 @@ class MemberSalesController extends HomeBaseController |
231
|
if(!$result) {
|
235
|
if(!$result) {
|
232
|
$this->error('电子订单生成失败');
|
236
|
$this->error('电子订单生成失败');
|
233
|
}
|
237
|
}
|
234
|
-// $order_where = [
|
|
|
235
|
-// 'status' => 0,
|
|
|
236
|
-// 'over_time' => ['egt',time()],
|
|
|
237
|
-// 'delete_time' => 0
|
|
|
238
|
-// ];
|
|
|
239
|
-// $url = url('portal/Order/to_pay',[],true,true);
|
|
|
240
|
-// $short_url = json_decode(file_get_contents('http://suo.im/api.php?format=json&url='.urlencode($url)),true)['url'];
|
|
|
241
|
-// $text = '订单确认码:'.Session::get('user_sale.number').'.点击 '.$short_url.' 或关注【宛林儿童游乐】支付.详询4001107575.';
|
|
|
242
|
-// $this->sendSMSS($mobile,$text);
|
|
|
243
|
-// $numberList = $this->order_model->where($order_where)->column('number');
|
|
|
244
|
-// Cache::set('number',$numberList);
|
238
|
+ $order_where = [
|
|
|
239
|
+ 'status' => 0,
|
|
|
240
|
+ 'over_time' => ['egt',time()],
|
|
|
241
|
+ 'delete_time' => 0
|
|
|
242
|
+ ];
|
|
|
243
|
+ $text = '订单确认码:'.Session::get('user_sale.number').'.点击 http://suo.im/51dOVK 或关注【宛林儿童游乐】支付.详询4001107575.';
|
|
|
244
|
+ $this->sendSMSS($mobile,$text);
|
|
|
245
|
+ $numberList = $this->order_model->where($order_where)->column('number');
|
|
|
246
|
+ Cache::set('number',$numberList);
|
245
|
$this->success('订单生成成功','',Session::get('user_sale.number'));
|
247
|
$this->success('订单生成成功','',Session::get('user_sale.number'));
|
246
|
}
|
248
|
}
|
247
|
}
|
249
|
}
|