edit-sylive-api

This commit is contained in:
lccsw
2023-04-29 17:04:41 +08:00
committed by lccsw
parent 32d41d6e78
commit 292c2f01ce
2 changed files with 19 additions and 18 deletions
+2 -2
View File
@@ -109,7 +109,7 @@ EOT;
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
$res = curl_exec($ch);
curl_close($ch);
debug_log("返回参数:".$post_data, 'syt.log');
debug_log("返回参数:".$res, 'syt.log');
return $res;
}
}
}
+17 -16
View File
@@ -591,24 +591,25 @@ class Act extends Wx {
$this->sylive2_entity->kpi_log($params);
}
}
if($a_id==11){
//通知第三方
require_once COMMPATH . 'third_party/Syt.php';
$syt = new Syt();
$dlrCode = "";
$mediaCaName = "";
$leadNo = $this->uid;
//获取意向网点编码
if($p_user){
$user = $this->user_model->get(['userId'=>$act_user_row['channelId']]);
$mediaCaName = $user['uname'];
$group_user = $this->groups_user_model->get(['activityId' => $a_id, 'userId' => $act_user_row['channelId'], 'status' => 0]);
$biz = $this->market_sylive_organization_model->get(['organizationId'=>$group_user['bizId']]);
$dlrCode = $biz['comments'];
}
$syt->Tj($dlrCode,"活动客户",$mobile,$mediaCaName,$leadNo);
}
}
$redis->delete($key);
if($a_id==11){
//通知第三方
require_once COMMPATH . 'third_party/Syt.php';
$syt = new Syt();
$dlrCode = "";
$mediaCaName = "";
$leadNo = $this->uid;
//获取意向网点编码
if($p_user){
$mediaCaName = $p_user['uname'];
$group_user = $this->groups_user_model->get(['activityId' => $a_id, 'userId' => $this->uid, 'status' => 0]);
$biz = $this->market_sylive_organization_model->get(['organizationId'=>$group_user['bizId']]);
$dlrCode = $biz['comments'];
}
$syt->Tj($dlrCode,"活动客户",$mobile,$mediaCaName,$leadNo);
}
$this->show_json('',200, '预约成功');
}
}