Authored by cailing

下单系-打印日志

... ... @@ -10,6 +10,7 @@ use Plugin\Pay\weixin\JsApiPay;
use Plugin\Pay\weixin\lib\WxPayUnifiedOrder;
use Plugin\Pay\weixin\lib\WxPayApi;
use Plugin\Pay\weixin\lib\WxPayConfig;
use Plugin\UdpLog;
/**
* 个人中心相关的控制器
... ... @@ -968,6 +969,7 @@ class HomeController extends AbstractAction
/* 判断订单信息不存在 */
$orderDetail = OrderData::viewOrderData($orderCode, $uid, $this->_usession);
if (empty($orderDetail['data'])) {
UdpLog::info('【下单】订单信息校验','orderCode:'.$orderCode.'uid:'.$uid.'返回:'.json_encode($orderDetail));
break;
}
... ...
... ... @@ -6,7 +6,7 @@ use LibModels\Wap\Home\CartData;
use LibModels\Wap\Home\OrderData;
use Plugin\Helpers;
use Plugin\Images;
use Plugin\UdpLog;
/**
*
* @name CartModel
... ... @@ -715,12 +715,15 @@ class CartModel
$result = array('code' => 400, 'message' => '出错啦');
if (empty($addressId)) {
UdpLog::info('【结算信息】配送地址参数校验','addressId为空');
$result['code'] = 401;
$result['message'] = '配送地址不能为空';
} elseif (empty($deliveryTime)) {
UdpLog::info('【结算信息】配送时间参数校验','deliveryTime为空');
$result['code'] = 402;
$result['message'] = '请选择配送时间';
} elseif (empty($deliveryWay)) {
UdpLog::info('【结算信息】配送方式参数参数校验','deliveryTime为空');
$result['code'] = 403;
$result['message'] = '请选择配送方式';
} else {
... ...
... ... @@ -8,6 +8,7 @@ use LibModels\Wap\Home\UserData;
use Plugin\Cache;
use Plugin\Helpers;
use Plugin\Images;
use Plugin\UdpLog;
/**
*
... ... @@ -590,6 +591,7 @@ class UserModel
// 处理地址数据
if (isset($address['data']) && !empty($address['data'])) {
UdpLog::info('地址数据校验','uid'.$uid.'返回:'.json_encode($address));
$result = $address['data'];
}
... ...
... ... @@ -6,6 +6,7 @@ use Index\CartModel;
use Index\UserModel;
use Plugin\Helpers;
use Plugin\UnionTrans;
use Plugin\UdpLog;
/**
* 购物车相关的控制器
... ... @@ -465,6 +466,7 @@ class IndexController extends AbstractAction
. ',deliveryWay:' . $deliveryWay . 'invoiceTitle:' . $invoiceTitle . ',invoiceId:' . $invoiceId . ',yohoCoin:' . $yohoCoin
. ',paymentId:' . $paymentId . ',paymentType:' . $paymentType . ',remark:' . $remark . ',couponCode:' . $couponCode . "\n";
error_log($message, 3, '/Data/logs/php/h5_error/order.' . date('Ym') . '.log');
UdpLog::info('【下单】下单异常数据','message:'.$message,'返回:'.json_encode($result));
}
// 返回数据
else {
... ...