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