Authored by 郝肖肖

去除垃圾日志

@@ -465,31 +465,6 @@ class IndexController extends WebAction @@ -465,31 +465,6 @@ class IndexController extends WebAction
465 } 465 }
466 while (false); 466 while (false);
467 467
468 -// $result = CartModel::orderSub($uid, $addressId, $cartType, $deliveryTime, $deliveryWay, $invoiceTitle, $invoiceId, $paymentId, $paymentType, $remark, $couponCode, $yohoCoin);  
469 -//  
470 - // 记录下单异常的数据  
471 - if (empty($result)) {  
472 - $message = 'uid:' . $uid . ',addressId:' . $addressId . ',cartType:' . $cartType . ',deliveryTime:' . $deliveryTime  
473 - . ',deliveryWay:' . $deliveryWay . 'invoiceTitle:' . $invoiceTitle . ',invoiceId:' . $invoiceId . ',yohoCoin:' . $yohoCoin  
474 - . ',paymentId:' . $paymentId . ',paymentType:' . $paymentType . ',remark:' . $remark . ',couponCode:' . $couponCode . "\n";  
475 - UdpLog::info('【下单】下单异常数据','message:'.$message,'返回:'.json_encode($result));  
476 - }  
477 -// // 返回数据  
478 -// else {  
479 -// // 提交成功清除Cookie  
480 -// $this->setCookie('order-info', null);  
481 -//  
482 -// $this->echoJson($result);  
483 -// }  
484 -//  
485 -// if ($uid && !empty($result['data'])) {  
486 -// try {  
487 -// UnionTrans::set($uid, $result['data']['order_code'], $result['data']['order_amount']);  
488 -// } catch (Exception $e) {  
489 -// // do nothing  
490 -// }  
491 -// }  
492 -  
493 $this->echoJson($result); 468 $this->echoJson($result);
494 } 469 }
495 470