|
@@ -140,7 +140,8 @@ class Task extends Api
|
|
// 增加用户经验值
|
|
// 增加用户经验值
|
|
//$res1 = \app\common\model\User::addEmpirical($this->auth->id,$taskInfo["exp"]);
|
|
//$res1 = \app\common\model\User::addEmpirical($this->auth->id,$taskInfo["exp"]);
|
|
// 增加用户金币
|
|
// 增加用户金币
|
|
- $res1 = model('wallet')->lockChangeAccountRemain($this->auth->id,'gold',$taskInfo["exp"],61,$taskInfo['name'],'task_log',$tasklogInfo['id']);
|
|
|
|
|
|
+// $res1 = model('wallet')->lockChangeAccountRemain($this->auth->id,'gold',$taskInfo["exp"],61,$taskInfo['name'],'task_log',$tasklogInfo['id']);
|
|
|
|
+ $res1 = model('wallet')->lockChangeAccountRemain($this->auth->id,$taskInfo["exp"],'+',0,'任务-'.$taskInfo['name'],20,'jewel');
|
|
if($res1['status'] === false){
|
|
if($res1['status'] === false){
|
|
Db::rollback();
|
|
Db::rollback();
|
|
$this->error($res1['msg']);
|
|
$this->error($res1['msg']);
|