Commit c7392254 authored by hujun's avatar hujun

return_type

parent f4d354c4
......@@ -34,6 +34,7 @@ class ApplyForCost extends Basic
$agent_data = $redis->getRedisCache(2, $this->agentId);
$check_url = '';
$return_type = $this->params['type'];
switch ($this->params['type']) {
case 1 :
if (!empty($this->params['site_id'])) {
......@@ -59,7 +60,7 @@ class ApplyForCost extends Basic
$check_url = 'index/checkCostThree/2';
//总监权限查看
$where['a.status'] = 1;
$where['a.status'] = 5;
$get_check_user = 'index/getCostListTwo/1';
$is_check = $this->checkAuth($get_check_user);
......@@ -109,8 +110,9 @@ class ApplyForCost extends Basic
if (!$is_check) {
$where['a.store_id'] = $agent_data['store_id'];
}
$return_type = 5;
$where['a.site_id'] = $this->siteId;
$where['a.status'] = 5;break; //行政审核
$where['a.status'] = 1;break; //行政审核
default :
return $this->response(101, '请求错误');
}
......@@ -159,7 +161,7 @@ class ApplyForCost extends Basic
$list[$k]['check_image_array'] = $check_image_array;
$list[$k]['check_list'] = $m_check->findByAll('a.remark,a.create_time,b.name as agent_name',['apply_for_id'=>$v['id']]);
$list[$k]['image_base_url'] = 'static/chat_image/';
$list[$k]['return_type'] = $this->params['type'];
$list[$k]['return_type'] = $return_type;
}
return $this->response(200, '', $list);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment