diff --git a/app/api/controller/PayController.php b/app/api/controller/PayController.php index ec8863c7..afcc7961 100644 --- a/app/api/controller/PayController.php +++ b/app/api/controller/PayController.php @@ -28,12 +28,8 @@ class PayController extends BaseApiController { $app = new PayService(1); $result = $app->wechat->callback(Request()->post()); - Cache::set('log'.time(),json_encode($result)); - Cache::set('logE'.time(),$result->event_type); - Cache::set('logE1'.time(),$result['event_type']??''); if ($result && $result->event_type == 'TRANSACTION.SUCCESS') { $ciphertext = $result->resource['ciphertext']; - Cache::set('logc'.time(),json_encode($result->resource['ciphertext'],true)); if ($ciphertext['trade_state'] === 'SUCCESS') { $attach = $ciphertext['attach']; switch ($attach) { diff --git a/app/api/logic/user/UserLogic.php b/app/api/logic/user/UserLogic.php index d3dbc1c0..5e6f8e75 100644 --- a/app/api/logic/user/UserLogic.php +++ b/app/api/logic/user/UserLogic.php @@ -65,7 +65,7 @@ class UserLogic extends BaseLogic public static function info($uid) { $data = User::with(['userShip'])->where('id',$uid) - ->field('avatar,real_name,nickname,account,mobile,sex,login_ip,user_money,total_recharge_amount,user_ship') + ->field('avatar,real_name,nickname,account,mobile,sex,login_ip,now_money,total_recharge_amount,user_ship') ->find(); //判断是不是员工 if($data){ diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index 07d2ffc8..dabcb4da 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -130,7 +130,7 @@ class PayNotifyLogic extends BaseLogic return true; } bcscale(2); - $user->user_money = bcadd($user->user_money, $price, 2); + $user->now_money = bcadd($user->now_money, $price, 2); $user->total_recharge_amount = bcadd($user->total_recharge_amount, $price, 2); $user->save(); //用户的财务add