From dec75670f6649dc5a5667466f5a0667bdb5336cc Mon Sep 17 00:00:00 2001 From: qianhy Date: Mon, 13 Mar 2023 16:39:26 +0800 Subject: [PATCH] customer defeat info --- api/controllers/wxapp/licheb/Customers.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index 73892086..6fb28939 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -67,6 +67,7 @@ class Customers extends Wxapp $visit_time = $this->get_visit_time($where_visit); $visit_time && $other_data['计划回访时间'] = $visit_time; $other_data['销售顾问'] = isset($admin) ? $admin['uname'] : ''; + $jsondata = $row['jsondata'] ? json_decode($row['jsondata'], true) : array(); $data = [ 'id' => $row['id'], 'name' => $row['name'], @@ -75,6 +76,7 @@ class Customers extends Wxapp 'tip' => $tip, 'is_top' => $row['is_top'], 'status' => $row['status'], + 'defeat' => $jsondata['defeat'], 'other_data' => $other_data, 'is_weChat' => $row['wxqy'] == 1 ? true : false, 'generate_order' => $this->myuid == $row['admin_id'] ? true : false,