作者 刘朕
1 个管道 的构建 通过 耗费 0 秒

合并分支 '1iuzhen' 到 'master'

订单添加优化



查看合并请求 !220
@@ -20,8 +20,6 @@ class IndexController extends HomeBaseController @@ -20,8 +20,6 @@ class IndexController extends HomeBaseController
20 protected $abc; 20 protected $abc;
21 public function index() 21 public function index()
22 { 22 {
23 -// $href = file_get_contents('http://suo.im/api.php?format=json&url=http%3a%2f%2fwww.baidu.com');  
24 -// echo json_decode($href, true)['url'];  
25 // 生成页面二维码(用户推广) 23 // 生成页面二维码(用户推广)
26 $url = url('index','','',true); 24 $url = url('index','','',true);
27 $qrcode = $this->createQRcode($url,'Q',9); 25 $qrcode = $this->createQRcode($url,'Q',9);
@@ -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 }