|
@@ -38,7 +38,7 @@ class Task extends Api
|
|
|
$where["is_show"] = 1;
|
|
|
|
|
|
$taskList = Db::name('task')
|
|
|
- ->field("id,type_id,image,name,exp,number,".$jump_url." as jump_url,url_type")
|
|
|
+ ->field("id,type_id,image,name,title,exp,number,".$jump_url." as jump_url,url_type")
|
|
|
->where($where)
|
|
|
->autopage()
|
|
|
->select();
|
|
@@ -83,7 +83,7 @@ class Task extends Api
|
|
|
$where["a.type_id"] = 1;
|
|
|
$where["a.is_show"] = 1;
|
|
|
$taskList = Db::name('task')->alias("a")
|
|
|
- ->field("a.id,a.type_id,a.image,a.name,a.exp,a.number,a.".$jump_url." as jump_url,a.url_type,l.pace,l.is_reward,l.is_finish,l.finish_number")
|
|
|
+ ->field("a.id,a.type_id,a.image,a.name,a.title,a.exp,a.number,a.".$jump_url." as jump_url,a.url_type,l.pace,l.is_reward,l.is_finish,l.finish_number")
|
|
|
->join("task_log l", "l.task_id = a.id and l.user_id = ".$this->auth->id, "left")
|
|
|
->where($where)
|
|
|
->autopage()
|
|
@@ -91,8 +91,6 @@ class Task extends Api
|
|
|
->select();
|
|
|
$taskList = list_domain_image($taskList,['image']);
|
|
|
|
|
|
- $comment_for_gold_switch = config('site.comment_for_gold_switch');//好评有礼开关
|
|
|
-
|
|
|
if($taskList) {
|
|
|
foreach($taskList as $k => $v) {
|
|
|
$v["pace"] || $taskList[$k]["pace"] = 0;
|
|
@@ -102,11 +100,6 @@ class Task extends Api
|
|
|
if($v["is_finish"] != 1 && $v["pace"] != 0) {
|
|
|
$taskList[$k]["pace_txt"] = $v["finish_number"]."/".$v["number"];
|
|
|
}
|
|
|
-
|
|
|
- //好评有礼开关
|
|
|
- if($v['id'] == 17 && $comment_for_gold_switch == 0){
|
|
|
- unset($taskList[$k]);
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -145,7 +138,7 @@ class Task extends Api
|
|
|
Db::startTrans();
|
|
|
try{
|
|
|
// 增加用户金币
|
|
|
- $res1 = model('wallet')->lockChangeAccountRemain($this->auth->id,'gold',$taskInfo["exp"],61,$taskInfo['name'],'task_log',$tasklogInfo['id']);
|
|
|
+ $res1 = model('wallet')->lockChangeAccountRemain($this->auth->id,'bean',$taskInfo["exp"],102,$taskInfo['name'],'task_log',$tasklogInfo['id']);
|
|
|
if($res1['status'] === false){
|
|
|
Db::rollback();
|
|
|
$this->error($res1['msg']);
|