...
|
...
|
@@ -207,7 +207,7 @@ class Pay extends Api |
|
|
);
|
|
|
//添加用户积分记录
|
|
|
$Fuser_idSql2 = [
|
|
|
'user_id' => $PayOrderInfo['user_id'],
|
|
|
'user_id' => $Fuser_id,
|
|
|
'status' => 1,
|
|
|
'type' => 9,
|
|
|
'num' => floor($OrderInfo['total']),
|
...
|
...
|
@@ -354,12 +354,12 @@ class Pay extends Api |
|
|
$RecordedFirstMoney = array_sum($FirstMoney);
|
|
|
$FirstUserInfoArray = Db::name('user')->where('id', $FatherUserId)->find();
|
|
|
//扣除积分 增加余额
|
|
|
Db::name('user')->where('id', $FatherUserId)->update(
|
|
|
[
|
|
|
// 'num' => $FirstUserInfoArray['num'] - $RecordedFirstMoney,
|
|
|
'money' => $FirstUserInfoArray['money'] + $RecordedFirstMoney
|
|
|
]
|
|
|
);
|
|
|
// Db::name('user')->where('id', $FatherUserId)->update(
|
|
|
// [
|
|
|
//// 'num' => $FirstUserInfoArray['num'] - $RecordedFirstMoney,
|
|
|
// 'money' => $FirstUserInfoArray['money'] + $RecordedFirstMoney
|
|
|
// ]
|
|
|
// );
|
|
|
//添加用户积分记录
|
|
|
// $FirstNumuSql = [
|
|
|
// 'user_id' => $FatherUserId,
|
...
|
...
|
@@ -408,12 +408,12 @@ class Pay extends Api |
|
|
$RecordedSecondMoney = array_sum($SecondMoney);
|
|
|
$SecondUserInfoArray = Db::name('user')->where('id', $GroundFatherUserId)->find();
|
|
|
//扣除积分 增加余额
|
|
|
Db::name('user')->where('id', $GroundFatherUserId)->update(
|
|
|
[
|
|
|
// 'num' => $SecondUserInfoArray['num'] - $RecordedSecondMoney,
|
|
|
'money' => $SecondUserInfoArray['money'] + $RecordedSecondMoney
|
|
|
]
|
|
|
);
|
|
|
// Db::name('user')->where('id', $GroundFatherUserId)->update(
|
|
|
// [
|
|
|
//// 'num' => $SecondUserInfoArray['num'] - $RecordedSecondMoney,
|
|
|
// 'money' => $SecondUserInfoArray['money'] + $RecordedSecondMoney
|
|
|
// ]
|
|
|
// );
|
|
|
// //添加用户积分记录
|
|
|
// $SecondNumuSql = [
|
|
|
// 'user_id' => $GroundFatherUserId,
|
...
|
...
|
|