Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
cailing
9 years ago
Commit
4235c56e8745232716625e6f5c2eca2379a488b8
1 parent
cf79025b
下单系-打印日志
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
1 deletions
yohobuy/m.yohobuy.com/application/controllers/Home.php
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/application/models/Index/User.php
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
4235c56
...
...
@@ -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
;
}
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
4235c56
...
...
@@ -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
{
...
...
yohobuy/m.yohobuy.com/application/models/Index/User.php
View file @
4235c56
...
...
@@ -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'
];
}
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
4235c56
...
...
@@ -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
{
...
...
Please
register
or
login
to post a comment