...
|
...
|
@@ -372,13 +372,17 @@ class ShareController extends RestBaseController |
|
|
];
|
|
|
Db::name('money_log')->insert($update_arr);
|
|
|
}
|
|
|
//分享记录
|
|
|
}
|
|
|
//分享记录
|
|
|
if ($info['id'] != $this->userId) {
|
|
|
$arr2 = [
|
|
|
'card_id'=>$data['card_id'],
|
|
|
'user_id'=>$this->userId,
|
|
|
'share_id'=>$data['user_id']
|
|
|
];
|
|
|
$res3 = Db::name('card_log')->insert($arr2);
|
|
|
} else {
|
|
|
$res3 = true;
|
|
|
}
|
|
|
if ($res1 === false || $res2 === false || $res3 === false) {
|
|
|
Db::rollback();
|
...
|
...
|
|