...
|
...
|
@@ -333,20 +333,20 @@ class Pay extends Api |
|
|
//扣除积分 增加余额
|
|
|
Db::name('user')->where('id', $FatherUserId)->update(
|
|
|
[
|
|
|
'num' => $FirstUserInfoArray['num'] - $RecordedFirstMoney,
|
|
|
// 'num' => $FirstUserInfoArray['num'] - $RecordedFirstMoney,
|
|
|
'money' => $FirstUserInfoArray['money'] + $RecordedFirstMoney
|
|
|
]
|
|
|
);
|
|
|
//添加用户积分记录
|
|
|
$FirstNumuSql = [
|
|
|
'user_id' => $FatherUserId,
|
|
|
'status' => 0,
|
|
|
'type' => 3,
|
|
|
'num' => $RecordedFirstMoney,
|
|
|
'up_num' => $FirstUserInfoArray['num'] - $RecordedFirstMoney,
|
|
|
'createtime' => time()
|
|
|
];
|
|
|
Db::name('num')->insert($FirstNumuSql);
|
|
|
// $FirstNumuSql = [
|
|
|
// 'user_id' => $FatherUserId,
|
|
|
// 'status' => 0,
|
|
|
// 'type' => 3,
|
|
|
// 'num' => $RecordedFirstMoney,
|
|
|
// 'up_num' => $FirstUserInfoArray['num'] - $RecordedFirstMoney,
|
|
|
// 'createtime' => time()
|
|
|
// ];
|
|
|
// Db::name('num')->insert($FirstNumuSql);
|
|
|
//添加收益记录
|
|
|
$FirstSqlMoney = [
|
|
|
'user_id' => $FatherUserId,
|
...
|
...
|
@@ -387,20 +387,20 @@ class Pay extends Api |
|
|
//扣除积分 增加余额
|
|
|
Db::name('user')->where('id', $GroundFatherUserId)->update(
|
|
|
[
|
|
|
'num' => $SecondUserInfoArray['num'] - $RecordedSecondMoney,
|
|
|
// 'num' => $SecondUserInfoArray['num'] - $RecordedSecondMoney,
|
|
|
'money' => $SecondUserInfoArray['money'] + $RecordedSecondMoney
|
|
|
]
|
|
|
);
|
|
|
//添加用户积分记录
|
|
|
$SecondNumuSql = [
|
|
|
'user_id' => $GroundFatherUserId,
|
|
|
'status' => 0,
|
|
|
'type' => 3,
|
|
|
'num' => $RecordedSecondMoney,
|
|
|
'up_num' => $SecondUserInfoArray['num'] - $RecordedSecondMoney,
|
|
|
'createtime' => time()
|
|
|
];
|
|
|
Db::name('num')->insert($SecondNumuSql);
|
|
|
// //添加用户积分记录
|
|
|
// $SecondNumuSql = [
|
|
|
// 'user_id' => $GroundFatherUserId,
|
|
|
// 'status' => 0,
|
|
|
// 'type' => 3,
|
|
|
// 'num' => $RecordedSecondMoney,
|
|
|
// 'up_num' => $SecondUserInfoArray['num'] - $RecordedSecondMoney,
|
|
|
// 'createtime' => time()
|
|
|
// ];
|
|
|
// Db::name('num')->insert($SecondNumuSql);
|
|
|
//添加收益记录
|
|
|
$SecondSqlMoney = [
|
|
|
'user_id' => $GroundFatherUserId,
|
...
|
...
|
|