Authored by hf

do add call order error logs

@@ -430,6 +430,7 @@ class IndexController extends AbstractAction @@ -430,6 +430,7 @@ class IndexController extends AbstractAction
430 . ',paymentId:' . $paymentId . ',paymentType:' . $paymentType . ',remark:' . $remark . ',couponCode:' . $couponCode . "\n"; 430 . ',paymentId:' . $paymentId . ',paymentType:' . $paymentType . ',remark:' . $remark . ',couponCode:' . $couponCode . "\n";
431 error_log($message, 3, '/Data/logs/php/h5_error/order.' . date('Ym') . '.log'); 431 error_log($message, 3, '/Data/logs/php/h5_error/order.' . date('Ym') . '.log');
432 } 432 }
  433 + // 返回数据
433 else { 434 else {
434 // 提交成功清除Cookie 435 // 提交成功清除Cookie
435 $this->setCookie('order-info', null); 436 $this->setCookie('order-info', null);
@@ -437,7 +438,6 @@ class IndexController extends AbstractAction @@ -437,7 +438,6 @@ class IndexController extends AbstractAction
437 $this->echoJson($result); 438 $this->echoJson($result);
438 } 439 }
439 440
440 -  
441 if ($uid && !empty($result['data'])) { 441 if ($uid && !empty($result['data'])) {
442 try { 442 try {
443 UnionTrans::set($uid, $result['data']['order_code'], $result['data']['order_amount']); 443 UnionTrans::set($uid, $result['data']['order_code'], $result['data']['order_amount']);
@@ -445,17 +445,8 @@ class IndexController extends AbstractAction @@ -445,17 +445,8 @@ class IndexController extends AbstractAction
445 // do nothing 445 // do nothing
446 } 446 }
447 } 447 }
448 -  
449 - }  
450 -  
451 - if (empty($result)) {  
452 - echo ' ';  
453 } else { 448 } else {
454 - // 提交成功清除Cookie  
455 - $this->setCookie('order-info', null);  
456 -  
457 - $this->echoJson($result);  
458 - 449 + echo ' ';
459 } 450 }
460 } 451 }
461 452