作者 何书鹏
1 个管道 的构建 通过 耗费 1 秒

焦点币改成金币

... ... @@ -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'],
... ...
... ... @@ -28,7 +28,7 @@ return [
'Type' => '类型',
'Type 1' => '增加',
'Type 2' => '扣除',
'Now_score' => '当前焦点币',
'Now_score' => '当前币',
'Score' => '焦点比数量',
'Username' => '后台账号',
'Password' => '后台密码',
... ...
... ... @@ -111,8 +111,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
},
{
name: 'score_edit',
text: '调整焦点币',
title: '调整焦点币',
text: '调整金币',
title: '调整金币',
classname: 'btn btn-xs btn-primary btn-dialog',
icon: '',
url: $.fn.bootstrapTable.defaults.extend.score_edit_url,
... ...