edit-sylive-notify
This commit is contained in:
@@ -165,7 +165,7 @@ class Sylive_entity{
|
||||
}
|
||||
$re_a = $this->ci->market_sylive_activity_model->get(array("activityId" => $params['a_id'], "status" => 0));
|
||||
$now_time = time();
|
||||
if(!in_array($params['kpi'],['subscribe','browse'])){ //无需活动开始
|
||||
if(!in_array($params['kpi'],['subscribe','browse','order'])){ //无需活动开始
|
||||
if ((!$re_a || $now_time < strtotime($re_a['timeStart']) || $now_time > strtotime($re_a['timeEnd']))) {
|
||||
return array('code' => 0, 'msg' => '无活动或未在活动时间内');
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ class Notify extends CI_Controller {
|
||||
if($res){
|
||||
$act_user = $this->act_user_model->get(['userId'=>$order['uid'],'activityId'=>$order['activityId']]);
|
||||
$params = [
|
||||
'a_id' => $order['itemId'],
|
||||
'a_id' => $order['activityId'],
|
||||
'uid' => $order['userId'],
|
||||
'cf_uid' => $act_user['channelId'],
|
||||
'kpi' => 'order',
|
||||
|
||||
Reference in New Issue
Block a user