|
@@ -84,8 +84,10 @@ class Notify extends Api
|
|
$user_id = $orderInfo['user_id'];
|
|
$user_id = $orderInfo['user_id'];
|
|
|
|
|
|
//逻辑开始
|
|
//逻辑开始
|
|
- //$args = json_decode($orderInfo['args'],true);
|
|
|
|
- $result = model('Wallet')->lockChangeAccountRemain($user_id,'money',$orderInfo['order_amount'],$log_type, $remark,'pay_order',$orderInfo['id']);
|
|
|
|
|
|
+ $args = json_decode($orderInfo['args'],true);
|
|
|
|
+ $giftmoney = isset($args['giftmoney']) ? $args['giftmoney'] : 0;
|
|
|
|
+ $rechargemoney = bcadd($orderInfo['order_amount'],$giftmoney,2);
|
|
|
|
+ $result = model('Wallet')->lockChangeAccountRemain($user_id,'money',$rechargemoney,$log_type, $remark,'pay_order',$orderInfo['id']);
|
|
if($result['status']===false)
|
|
if($result['status']===false)
|
|
{
|
|
{
|
|
Db::rollback();
|
|
Db::rollback();
|