edit-api-biz_company

This commit is contained in:
lccsw
2022-04-01 10:36:21 +08:00
parent aed4c8beb8
commit 76eee8bce7
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -11,5 +11,9 @@ class Welcome extends CI_Controller {
}
public function test(){
$this->load->library('receiver/orders_v2_entity');
$biz_id = 134;
$row = $this->orders_v2_entity->get_biz_mchid($biz_id);
print_r($row);
}
}
@@ -108,7 +108,7 @@ class Orders_v2_entity{
$where = [
"id in ({$biz['company_id']},{$biz['srv_company_id']})" => null
];
$companys = $this->ci->sys_company_model->map('wx_mchid','',$where,'','','',$filed);
$companys = $this->ci->sys_company_model->map('id','',$where,'','','',$filed);
$company = $companys[$biz['company_id']][0];
$srv_company = $companys[$biz['srv_company_id']][0];
}else{ //其它店铺