From 0545eadf8bef59f0e992caf57455e73487734fc6 Mon Sep 17 00:00:00 2001 From: qianhy Date: Sun, 12 Mar 2023 20:38:54 +0800 Subject: [PATCH] customer defeat reason add tag_name --- api/controllers/wxapp/licheb/Customers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index deba20d5..fa801dd9 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -423,12 +423,12 @@ class Customers extends Wxapp throw new Exception("请选择标签[{$val['name']}]!", ERR_PARAMS_ERROR); }*/ $tag_arr_all = array_merge($tag_arr_all, $tag_arr); - $tag_str .= $val['name'].': '.implode(', ', $tag_arr).'; '; + $tag_arr && $tag_str .= $val['name'].': '.implode(', ', $tag_arr).'; '; } if (!$tag_checked){ throw new Exception("请选择至少一个标签!", ERR_PARAMS_ERROR); } - $tag_str = implode(', ', $tag_arr_all); + #$tag_str = implode(', ', $tag_arr_all); $jsondata = $row['jsondata'] ? json_decode($row['jsondata'], true) : array(); $jsondata['defeat']['time'] = date("Y-m-d H:i:s"); $jsondata['defeat']['reason'] = $defeat_reason."({$tag_str})";