customer defeat reason add tag_name

This commit is contained in:
qianhy
2023-03-12 20:38:54 +08:00
parent 428bfe54f2
commit 0545eadf8b
+2 -2
View File
@@ -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})";