Commit 0ffe84c0 authored by zhuwei's avatar zhuwei

电话跟进优化

parent 3b236735
...@@ -21,8 +21,27 @@ class UPhoneFollowPp extends BaseModel ...@@ -21,8 +21,27 @@ class UPhoneFollowPp extends BaseModel
* @param $data * @param $data
* @return int|string * @return int|string
*/ */
public function savePhoneFollow($data) { public function savePhoneFollow($params) {
$result = $this->UPhoneFollowPp->insert($data); $arr = [];
if (isset($params["content"])) {
$arr["content"] = $params["content"];
}
if (isset($params["labels_id"])) {
$arr["labels_id"] = $params["labels_id"];
}
if (isset($params["user_id"])) {
$arr["user_id"] = $params["user_id"];
}
if (isset($params["agent_id"])) {
$arr["agent_id"] = $params["agent_id"];
}
if (isset($params["type"])) {
$arr["type"] = $params["type"];
}
if (isset($params["user_status"])) {
$arr["user_status"] = $params["user_status"];
}
$result = $this->UPhoneFollowPp->insert($arr);
return $result; return $result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment