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})";