edit-sylive-api
This commit is contained in:
Vendored
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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, '预约成功');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user