api_material_119

This commit is contained in:
dengbw
2022-01-19 11:30:35 +08:00
committed by lccsw
parent 203a3c0aeb
commit e7cd5391dc
2 changed files with 19 additions and 11 deletions
+5
View File
@@ -844,6 +844,11 @@ class Transfer extends HD_Controller
$cache_transports[$key]['mobile'] = $params['mobile'];
$cache_transports[$key]['time'] = date('Y-m-d');
$addTransports = false;
} else if (($value['cardid'] == '待定' || $value['cardid'] == '待补') && $value['mobile'] == $params['mobile']) {
$cache_transports[$key]['name'] = $params['name'];
$cache_transports[$key]['cardid'] = $params['cardid'];
$cache_transports[$key]['time'] = date('Y-m-d');
$addTransports = false;
}
}
if ($addTransports) {//新增
+14 -11
View File
@@ -44,16 +44,19 @@ class Home extends Wxapp
if ($distribute == 1) {//分销
$res = $this->mdAutoBrand->select(array('status' => 1, 'id<>' => 3), "id desc", 0, 0, 'id,name');
} else {
if ($this->biz_id) {//查找门店授权品牌
$re_b = $this->mdBiz->get(array('id' => $this->biz_id, 'status' => 1));
if ($re_b['jsondata']) {
$jsondata = json_decode($re_b['jsondata'], true);
if ($jsondata['auto_brands']) {
$brand_ids = implode($jsondata['auto_brands'], ',');
$res = $this->mdAutoBrand->select(array("id in ({$brand_ids})" => null, 'status' => 1, 'id<>' => 3), "id desc", 0, 0, 'id,name');
}
}
}
$res = $this->mdAutoBrand->select(['id' => 1], "id desc", 0, 0, 'id,name');//临时只显示东风品牌 1.19
//临时隐藏
// if ($this->biz_id) {//查找门店授权品牌
// $re_b = $this->mdBiz->get(array('id' => $this->biz_id, 'status' => 1));
// if ($re_b['jsondata']) {
// $jsondata = json_decode($re_b['jsondata'], true);
// if ($jsondata['auto_brands']) {
// $brand_ids = implode($jsondata['auto_brands'], ',');
// !$brand_ids && $brand_ids = $jsondata['auto_brands'];
// $res = $this->mdAutoBrand->select(array("id in ({$brand_ids})" => null, 'status' => 1, 'id<>' => 3), "id desc", 0, 0, 'id,name');
// }
// }
// }
}
//根据品牌做分类
if ($res) {
@@ -71,7 +74,7 @@ class Home extends Wxapp
array_multisort($timeKey, SORT_DESC, $list);//排序,根据$total 排序
}
}
$list[] = ['id' => '3', 'name' => '狸车'];//全品牌蓄客
$distribute == 1 && $list[] = ['id' => '3', 'name' => '狸车'];//全品牌蓄客 $distribute == 1临时加分销判断 1.19
$this->data['title'] = '推广素材';
$this->data['list'] = $list;
$this->data['list_type'] = [['id' => 4, 'name' => '图片'], ['id' => 1, 'name' => '视频']];