From 0d90a41dd1295d0febc5331f2ed4bee64ef3b82d Mon Sep 17 00:00:00 2001 From: dengbw Date: Tue, 28 Jun 2022 16:46:32 +0800 Subject: [PATCH] different_628 --- admin/controllers/receiver/Customer.php | 13 +- admin/views/receiver/customer/get.php | 16 +- api/controllers/plan/Licheb.php | 13 +- api/controllers/wechat/Different.php | 328 ++++++++++++++++++ api/controllers/wxapp/licheb/Customers.php | 22 +- common/libraries/Wx_qyapi.php | 13 +- common/libraries/Wx_qyapi_agent.php | 2 +- .../libraries/receiver/Customers_entity.php | 7 +- .../models/app/App_different_qy_log_model.php | 31 ++ common/models/app/App_different_qy_model.php | 17 + home/controllers/h5/Different.php | 138 ++++---- home/controllers/h5/Persona.php | 2 +- home/views/h5/different/index.php | 24 +- 13 files changed, 511 insertions(+), 115 deletions(-) create mode 100644 api/controllers/wechat/Different.php create mode 100644 common/models/app/App_different_qy_log_model.php create mode 100644 common/models/app/App_different_qy_model.php diff --git a/admin/controllers/receiver/Customer.php b/admin/controllers/receiver/Customer.php index afedaf24..f791bbb3 100644 --- a/admin/controllers/receiver/Customer.php +++ b/admin/controllers/receiver/Customer.php @@ -286,7 +286,14 @@ class Customer extends HD_Controller $of_title = $of_ary['name']; $row['of2_id'] && $of_title .= '-' . $of_ary['list'][$row['of2_id']]; } - + $tag = $tag_group = []; + $biz_type = intval($row_biz['type']); + if ($biz_type == 5) { + $jsondata = $row['jsondata'] ? json_decode($row['jsondata'], true) : []; + $jsondata['tag_group'] && $tag_group = $jsondata['tag_group']; + } else { + $tag = $this->get_tag($row['id']); + } $info = array( 'id' => $row['id'], 'name' => $row['name'], @@ -296,7 +303,9 @@ class Customer extends HD_Controller 'cf_user' => $cf_user, 'c_time' => date('Y-m-d H:i:s', $row['c_time']), 'status' => $row['status'], - 'tag' => $this->get_tag($row['id']), + 'tag' => $tag, + 'tag_group' => $tag_group, + 'biz_type' => $biz_type, ); //到店信息 diff --git a/admin/views/receiver/customer/get.php b/admin/views/receiver/customer/get.php index 33a00886..03002abb 100644 --- a/admin/views/receiver/customer/get.php +++ b/admin/views/receiver/customer/get.php @@ -122,12 +122,24 @@ 用户画像 - +
- +
+ + + +
+ {{v.name}}: + +
+