orderType
This commit is contained in:
@@ -582,7 +582,12 @@ class Act extends Wx
|
||||
$ac_row = $this->market_sylive_activity_model->get(['activityId' => $a_id], 'jsondata,orderType');
|
||||
$jsondata = json_decode($ac_row['jsondata'], true);
|
||||
$act_user_row = $this->act_user_model->get(['id' => $this->act_uid]);
|
||||
$p_user = $this->act_user_model->get(['userId' => $act_user_row['channelId'], 'activityId' => $a_id]);
|
||||
if($ac_row['orderType'] && $act_user_row['pid']){
|
||||
$cf_uid = $act_user_row['pid'];
|
||||
}else{
|
||||
$cf_uid = $act_user_row['channelId'];
|
||||
}
|
||||
$p_user = $this->act_user_model->get(['userId' => $cf_uid, 'activityId' => $a_id]);
|
||||
|
||||
$ukey = md5($a_id . $mobile);
|
||||
$add_data = [
|
||||
@@ -627,12 +632,10 @@ class Act extends Wx
|
||||
$p_user['levelId2'] && $unpay['levelId2'] = $p_user['levelId2'];
|
||||
$p_user['levelId3'] && $unpay['levelId3'] = $p_user['levelId3'];
|
||||
$p_user['userId'] && $unpay['cfUserId'] = $p_user['userId'];
|
||||
$ac_row['orderType'] && $unpay['cfUserId'] = $act_user_row['pid'];
|
||||
$order_id = $this->market_sylive_order_model->add($unpay);
|
||||
if (is_numeric($order_id)) {
|
||||
//添加kpi
|
||||
$params = ['a_id' => $a_id, 'uid' => $this->uid, 'cf_uid' => $act_user_row['channelId'], 'kpi' => 'beforeOrder'];
|
||||
$ac_row['orderType'] && $params['cf_uid'] = $act_user_row['pid'];
|
||||
$params = ['a_id' => $a_id, 'uid' => $this->uid, 'cf_uid' => $cf_uid, 'kpi' => 'beforeOrder'];
|
||||
$order_id && $params['tagId'] = intval($order_id);
|
||||
$params['itemId'] = $itemId;
|
||||
$params['jsondata'] = [
|
||||
|
||||
@@ -158,7 +158,7 @@ class Item extends Wx{
|
||||
$act_user = $this->act_user_model->get(['userId'=>$this->uid,'activityId'=>$a_id]);
|
||||
$act = $this->market_sylive_activity_model->get(['activityId'=>$row['activityId']]);
|
||||
|
||||
if($act['orderType'] && $act_user['channelId'] != $act_user['pid'] && $act_user['pid'] ) {
|
||||
if($act['orderType'] && $act_user['pid'] ) {
|
||||
$p_user = $this->act_user_model->get(['userId'=>$act_user['pid'], 'activityId'=>$a_id]);
|
||||
} else{
|
||||
$p_user = $this->act_user_model->get(['userId'=>$act_user['channelId'], 'activityId'=>$a_id]);
|
||||
|
||||
@@ -78,13 +78,13 @@ class Notify extends CI_Controller
|
||||
}
|
||||
if ($res) {
|
||||
$act_user = $this->act_user_model->get(['userId' => $order['userId'], 'activityId' => $order['activityId']]);
|
||||
$cf_uid = $act_user['channelId'];
|
||||
|
||||
// if ($kpi == 'order' && in_array($order['activityId'], array(21))) {
|
||||
// $cf_uid = $act_user['channelId'] == $act_user['pid'] ? $act_user['channelId'] : $act_user['pid'];
|
||||
// }
|
||||
if ($kpi == 'order' && $act['orderType'] && $act_user['pid']) {
|
||||
if ($act['orderType'] && $act_user['pid']) {
|
||||
$cf_uid = $act_user['pid'];
|
||||
}else{
|
||||
$cf_uid = $act_user['channelId'];
|
||||
}
|
||||
|
||||
$params = [
|
||||
|
||||
Reference in New Issue
Block a user