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

订单添加优化

@@ -232,17 +232,17 @@ class MemberSalesController extends HomeBaseController @@ -232,17 +232,17 @@ class MemberSalesController extends HomeBaseController
232 if(!$result) { 232 if(!$result) {
233 $this->error('电子订单生成失败'); 233 $this->error('电子订单生成失败');
234 } 234 }
235 - $order_where = [  
236 - 'status' => 0,  
237 - 'over_time' => ['egt',time()],  
238 - 'delete_time' => 0  
239 - ]; 235 +// $order_where = [
  236 +// 'status' => 0,
  237 +// 'over_time' => ['egt',time()],
  238 +// 'delete_time' => 0
  239 +// ];
240 $url = url('portal/Order/to_pay',[],true,true); 240 $url = url('portal/Order/to_pay',[],true,true);
241 $short_url = json_decode(file_get_contents('http://suo.im/api.php?format=json&url='.urlencode($url)),true)['url']; 241 $short_url = json_decode(file_get_contents('http://suo.im/api.php?format=json&url='.urlencode($url)),true)['url'];
242 $text = '订单确认码:'.Session::get('user_sale.number').'.点击 '.$short_url.' 或关注【宛林儿童游乐】支付.详询4001107575.'; 242 $text = '订单确认码:'.Session::get('user_sale.number').'.点击 '.$short_url.' 或关注【宛林儿童游乐】支付.详询4001107575.';
243 $this->sendSMSS($mobile,$text); 243 $this->sendSMSS($mobile,$text);
244 - $numberList = $this->order_model->where($order_where)->column('number');  
245 - Cache::set('number',$numberList); 244 +// $numberList = $this->order_model->where($order_where)->column('number');
  245 +// Cache::set('number',$numberList);
246 $this->success('订单生成成功','',Session::get('user_sale.number')); 246 $this->success('订单生成成功','',Session::get('user_sale.number'));
247 } 247 }
248 } 248 }