更新
This commit is contained in:
parent
acb236dff8
commit
53ad57ce7a
@ -90,6 +90,7 @@ class InformationController extends BaseApiController
|
|||||||
$task=Task::where('id',$param['task_id'])->find();
|
$task=Task::where('id',$param['task_id'])->find();
|
||||||
$extend=$task['extend'];
|
$extend=$task['extend'];
|
||||||
$extend['informationg']['update']+=1;
|
$extend['informationg']['update']+=1;
|
||||||
|
$extend['informationg']['ids'][]=$param['id'];
|
||||||
$task->extend=json_encode($extend);
|
$task->extend=json_encode($extend);
|
||||||
if($extend['informationg']['update']>=5){
|
if($extend['informationg']['update']>=5){
|
||||||
$task->status=3;
|
$task->status=3;
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
namespace app\api\controller;
|
namespace app\api\controller;
|
||||||
|
|
||||||
use app\common\model\Company;
|
use app\common\model\Company;
|
||||||
|
use app\common\model\informationg\UserInformationg;
|
||||||
use app\common\model\task\Task;
|
use app\common\model\task\Task;
|
||||||
use app\common\model\user\User;
|
use app\common\model\user\User;
|
||||||
|
|
||||||
@ -52,4 +53,16 @@ class TaskController extends BaseApiController{
|
|||||||
}
|
}
|
||||||
return $this->success('ok', $res);
|
return $this->success('ok', $res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function informationg_list(){
|
||||||
|
$parmas=Request()->param();
|
||||||
|
$find=Task::where('id',$parmas['id'])->find();
|
||||||
|
if($find['type']==31){
|
||||||
|
$ids=$find['extend']['informationg']['ids'];
|
||||||
|
$list= UserInformationg::where('id','in',$ids)->field('id,name,phone,sex,age')->select()->toArray();
|
||||||
|
}else{
|
||||||
|
$list=[];
|
||||||
|
}
|
||||||
|
return $this->success('ok',$list);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user