查询镇管理公司

This commit is contained in:
mkm 2023-09-23 18:59:00 +08:00
parent ebaf3caf5d
commit fb60fa3f9a
2 changed files with 48 additions and 1 deletions

View File

@ -1 +1,34 @@
APP_DEBUG = true [APP] DEFAULT_TIMEZONE = Asia/Shanghai [DATABASE] TYPE = mysql HOSTNAME = 127.0.0.1 DATABASE = test USERNAME = username PASSWORD = password HOSTPORT = 3306 CHARSET = utf8 DEBUG = true PREFIX = la_ [LANG] default_lang = zh-cn [PROJECT] UNIQUE_IDENTIFICATION = likeadmin # 演示环境 DEMO_ENV = false
APP_DEBUG = true
[APP]
DEFAULT_TIMEZONE = Asia/Shanghai
[DATABASE]
TYPE = mysql
HOSTNAME = 127.0.0.1
DATABASE = test
USERNAME = username
PASSWORD = password
HOSTPORT = 3306
CHARSET = utf8
DEBUG = true
PREFIX = la_
[LANG]
default_lang = zh-cn
[PROJECT]
UNIQUE_IDENTIFICATION = likeadmin
# 演示环境
DEMO_ENV = false
[DATABASE]
TYPE = "mysql"
HOSTNAME = "47.109.36.146"
DATABASE = "worker_task"
USERNAME = "worker_task"
PASSWORD = "p4WGD67TezzzX3Mc"
HOSTPORT = "3306"
CHARSET = "utf8mb4"
DEBUG = "0"
PREFIX = "la_"

View File

@ -344,4 +344,18 @@ class CompanyController extends BaseApiController
Db::name('company_complaint_feedback')->insertGetId(['company_id'=>$company['id'], 'content'=>$params['content'],'create_time'=>time(), 'update_time'=>time()]);
return $this->success('成功');
}
/**
* 查询镇管理公司
*/
public function street_company(){
$street=$this->request->param('street_code');
$company = Company::where('street', $street)->where('company_type',41)->find();
if($company){
return $this->success('ok',['title'=>$company['company_name']]);
}else{
return $this->fail('没有镇管理公司');
}
}
}