Commit ee4fa14c by hcy001

1

parent 078948c6
Showing with 2 additions and 0 deletions
...@@ -395,6 +395,8 @@ class InquiryModel extends Model ...@@ -395,6 +395,8 @@ class InquiryModel extends Model
if ($input["user_types"] == 1) { #个人询价 if ($input["user_types"] == 1) { #个人询价
if ($user[0]["value"] == 0) { #客户id是0,新建客户 if ($user[0]["value"] == 0) { #客户id是0,新建客户
$userId = (new InquiryUsersModel())->insertGetId(["create_uid" => $input["user_id"], "user_name" => $user[0]["name"], "create_time" => time()]); $userId = (new InquiryUsersModel())->insertGetId(["create_uid" => $input["user_id"], "user_name" => $user[0]["name"], "create_time" => time()]);
}else{
$userId = $user[0]["value"];
} }
$data["user_id"] = $userId; $data["user_id"] = $userId;
$data["user_name"] = $user[0]["name"]; $data["user_name"] = $user[0]["name"];
......
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 sign in to comment