12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\App;
- use think\Db;
- use think\exception\Handle;
- class Daily extends Base
- {
- public function __construct(App $app = null) {
- parent::__construct($app);
- $this->model = new \app\common\model\Daily();
- }
- public function sweepCode(){
- $code=input('code');
- $taskId = input('taskId/d',0);
- $dailyId = input('dailyId/d',0);
- $ret=$this->model->sweepCode($this->orgId,$code,$this->userId,$taskId,$dailyId);
- if($ret){
- HelpHander::success($ret);
- }else{
- HelpHander::error($this->model->getError());
- }
- }
- public function dailyInfo(){
- $id=input('dailyId');
- $ret=$this->model->dailyInfo($id,$this->orgId);
- if($ret){
- HelpHander::success($ret);
- }else{
- HelpHander::error($this->model->getError());
- }
- }
- //任务列表下所有地点
- public function taskAddrAll(){
- $taskId = input('taskId/d',0);
- $ret = $this->model->taskAddrAll($taskId);
- HelpHander::success($ret);
- }
- //我的历史记录
- public function myTaskRecord(){
- $page = input('page/d',1);
- $size = input('size/d',10);
- $ret = $this->model->myTaskRecord($page,$size,$this->userId,$this->orgId);
- HelpHander::success($ret);
- }
- }
|