diff --git a/common/third_party/Syt.php b/common/third_party/Syt.php index 06e5ebfe..842b2fff 100644 --- a/common/third_party/Syt.php +++ b/common/third_party/Syt.php @@ -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; } -} \ No newline at end of file +} diff --git a/home/controllers/h5/market/sylive2/Act.php b/home/controllers/h5/market/sylive2/Act.php index 07d3c00e..fd46f249 100644 --- a/home/controllers/h5/market/sylive2/Act.php +++ b/home/controllers/h5/market/sylive2/Act.php @@ -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, '预约成功'); } }