Commit f42407e6 authored by clone's avatar clone

Merge branch 'test'

parents aced8688 637825a5
...@@ -38,6 +38,9 @@ class Version extends Basic ...@@ -38,6 +38,9 @@ class Version extends Basic
if(isset($type)){ if(isset($type)){
$this->response("101","请求的设备类型不能为空"); $this->response("101","请求的设备类型不能为空");
} }
if($type == "android"){
$type = 0;
}
$versionResult = $this->appVersion->getVersion($type); $versionResult = $this->appVersion->getVersion($type);
return $this->response("200", "request success", $versionResult); return $this->response("200", "request success", $versionResult);
} }
......
...@@ -107,7 +107,7 @@ class ADistrict extends BaseModel ...@@ -107,7 +107,7 @@ class ADistrict extends BaseModel
$agents = Db::table('a_agents')->field('name,phone') $agents = Db::table('a_agents')->field('name,phone')
->where([ ->where([
'status' => 0, 'status' => 0,
'level' => ['in',['30,40']], 'level' => ['in',[30,40]],
'district_id' => $id 'district_id' => $id
])->find(); ])->find();
......
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