...
|
...
|
@@ -102,7 +102,7 @@ class ShareController extends RestBaseController |
|
|
->alias('s')
|
|
|
->join('user u','s.user_id=u.id','left')
|
|
|
->where(['s.card_id' => $data['id'],'state' => 1])
|
|
|
->field('u.avatar,u.user_nickname,s.money,s.pay_time')
|
|
|
->field('u.avatar,u.user_nickname,s.money,s.create_time pay_time')
|
|
|
->order('s.pay_time desc')
|
|
|
->paginate($per_page);
|
|
|
if ($result === false) {
|
...
|
...
|
@@ -366,7 +366,7 @@ class ShareController extends RestBaseController |
|
|
} else {
|
|
|
$update_arr = [
|
|
|
'card_id' => $data['card_id'],
|
|
|
'user_id' => $this->userId,
|
|
|
'user_id' => $data['user_id'],
|
|
|
'money' => $money,
|
|
|
];
|
|
|
Db::name('money_log')->insert($update_arr);
|
...
|
...
|
|