|
@@ -254,7 +254,7 @@ class Store extends Backend |
|
@@ -254,7 +254,7 @@ class Store extends Backend |
254
|
}
|
254
|
}
|
255
|
|
255
|
|
256
|
/**
|
256
|
/**
|
257
|
- * 调整焦点币
|
257
|
+ * 调整金币
|
258
|
*/
|
258
|
*/
|
259
|
public function score_edit($ids = null)
|
259
|
public function score_edit($ids = null)
|
260
|
{
|
260
|
{
|
|
@@ -276,7 +276,7 @@ class Store extends Backend |
|
@@ -276,7 +276,7 @@ class Store extends Backend |
276
|
if($params['type'] == 1) {
|
276
|
if($params['type'] == 1) {
|
277
|
} else {
|
277
|
} else {
|
278
|
if($user['score'] < $params['score']) {
|
278
|
if($user['score'] < $params['score']) {
|
279
|
- $this->error('该商家焦点币余额不足');
|
279
|
+ $this->error('该商家金币余额不足');
|
280
|
}
|
280
|
}
|
281
|
}
|
281
|
}
|
282
|
$result = $res_log = false;
|
282
|
$result = $res_log = false;
|
|
@@ -285,11 +285,11 @@ class Store extends Backend |
|
@@ -285,11 +285,11 @@ class Store extends Backend |
285
|
if($params['type'] == 1) {
|
285
|
if($params['type'] == 1) {
|
286
|
$result = Db::name('user')->where('id',$user['id'])->setInc('score',$params['score']);
|
286
|
$result = Db::name('user')->where('id',$user['id'])->setInc('score',$params['score']);
|
287
|
$after = bcadd($user['score'],$params['score'],0);
|
287
|
$after = bcadd($user['score'],$params['score'],0);
|
288
|
- $memo = '平台代充焦点币';
|
288
|
+ $memo = '平台代充金币';
|
289
|
} else {
|
289
|
} else {
|
290
|
$result = Db::name('user')->where('id',$user['id'])->setDec('score',$params['score']);
|
290
|
$result = Db::name('user')->where('id',$user['id'])->setDec('score',$params['score']);
|
291
|
$after = bcsub($user['score'],$params['score'],0);
|
291
|
$after = bcsub($user['score'],$params['score'],0);
|
292
|
- $memo = '平台扣除焦点币';
|
292
|
+ $memo = '平台扣除金币';
|
293
|
}
|
293
|
}
|
294
|
$score_log = [
|
294
|
$score_log = [
|
295
|
'user_id' => $user['id'],
|
295
|
'user_id' => $user['id'],
|