|
@@ -268,7 +268,8 @@ class OrdersController extends BaseController
|
|
|
$property = UserDivisionCpcPropertyService::getUserPropertyV2($this->uid);
|
|
|
$user_info = $this->_user_info;
|
|
|
$result = $this->monthAbTest($property,$user_info->openid);
|
|
|
- if($result == 0)$this->monthPayExposureRecord($property,$user_info->openid);
|
|
|
+ if($result == 0){$this->monthPayExposureRecord($property,$user_info->openid);}
|
|
|
+ $this->monthPayExposureRecordOther();
|
|
|
foreach ($res as $v) {
|
|
|
if ($template_id == 7 && $book_config && $book_config->charge_type == 'BOOK' && $v->price == 2) {
|
|
|
continue;
|
|
@@ -913,6 +914,27 @@ class OrdersController extends BaseController
|
|
|
return redirect()->to(generateMonthOrderUrl($info->id));
|
|
|
}
|
|
|
|
|
|
+ private function monthPayExposureRecordOther(){
|
|
|
+ $month_info = UserMonthService::getOrderAndSignStatusByUid($this->uid);
|
|
|
+ if($month_info){
|
|
|
+ if(in_array('MONTH',$month_info)){
|
|
|
+ DB::table('user_month_visit_record')->insert([
|
|
|
+ 'uid'=>$this->uid,'day'=>date('Y-m-d'),
|
|
|
+ 'type'=>'MONTH',
|
|
|
+ 'created_at'=>date('Y-m-d H:i:s'),
|
|
|
+ 'updated_at'=>date('Y-m-d H:i:s')
|
|
|
+ ]);
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ DB::table('user_month_visit_record')->insert([
|
|
|
+ 'uid'=>$this->uid,'day'=>date('Y-m-d'),
|
|
|
+ 'type'=>'WEEK',
|
|
|
+ 'created_at'=>date('Y-m-d H:i:s'),
|
|
|
+ 'updated_at'=>date('Y-m-d H:i:s')
|
|
|
+ ]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
private function monthPayExposureRecord($property,$openid){
|
|
|
if (!$property) return '';
|
|
|
if (in_array($this->distribution_channel_id, explode(',', redisEnv('OPEN_ORDER_INNER_SITES')))
|