...
|
...
|
@@ -254,7 +254,7 @@ class Store extends Backend |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 调整焦点币
|
|
|
* 调整金币
|
|
|
*/
|
|
|
public function score_edit($ids = null)
|
|
|
{
|
...
|
...
|
@@ -276,7 +276,7 @@ class Store extends Backend |
|
|
if($params['type'] == 1) {
|
|
|
} else {
|
|
|
if($user['score'] < $params['score']) {
|
|
|
$this->error('该商家焦点币余额不足');
|
|
|
$this->error('该商家金币余额不足');
|
|
|
}
|
|
|
}
|
|
|
$result = $res_log = false;
|
...
|
...
|
@@ -285,11 +285,11 @@ class Store extends Backend |
|
|
if($params['type'] == 1) {
|
|
|
$result = Db::name('user')->where('id',$user['id'])->setInc('score',$params['score']);
|
|
|
$after = bcadd($user['score'],$params['score'],0);
|
|
|
$memo = '平台代充焦点币';
|
|
|
$memo = '平台代充金币';
|
|
|
} else {
|
|
|
$result = Db::name('user')->where('id',$user['id'])->setDec('score',$params['score']);
|
|
|
$after = bcsub($user['score'],$params['score'],0);
|
|
|
$memo = '平台扣除焦点币';
|
|
|
$memo = '平台扣除金币';
|
|
|
}
|
|
|
$score_log = [
|
|
|
'user_id' => $user['id'],
|
...
|
...
|
|