|
@@ -3,6 +3,7 @@
|
|
namespace App\Http\Controllers\Wap\Order;
|
|
namespace App\Http\Controllers\Wap\Order;
|
|
|
|
|
|
use App\Http\Controllers\Wap\BaseController;
|
|
use App\Http\Controllers\Wap\BaseController;
|
|
|
|
+use App\Modules\Channel\Services\ChannelService;
|
|
use App\Modules\Statistic\Services\AdVisitStatService;
|
|
use App\Modules\Statistic\Services\AdVisitStatService;
|
|
use App\Modules\Statistic\Services\DataAnalysisSelectUserService;
|
|
use App\Modules\Statistic\Services\DataAnalysisSelectUserService;
|
|
use App\Modules\User\Services\UserService;
|
|
use App\Modules\User\Services\UserService;
|
|
@@ -222,6 +223,13 @@ class OrdersController extends BaseController
|
|
$template_id = $t;
|
|
$template_id = $t;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //男频站点 支付模板
|
|
|
|
+ if( ($male_site_template = $this->maleSite($this->distribution_channel_id)) ){
|
|
|
|
+ //\Log::info('$male_site_template is: '.$male_site_template);
|
|
|
|
+ $template_id = $male_site_template;
|
|
|
|
+ }
|
|
|
|
+
|
|
if( ($compare_id = $this->templateCompare()) ){
|
|
if( ($compare_id = $this->templateCompare()) ){
|
|
$template_id = $compare_id;
|
|
$template_id = $compare_id;
|
|
}
|
|
}
|
|
@@ -650,4 +658,16 @@ class OrdersController extends BaseController
|
|
return $template_id;
|
|
return $template_id;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private function maleSite($distribution_channel_id){
|
|
|
|
+ $info = ChannelService::getChannelCompanyInfo($distribution_channel_id);
|
|
|
|
+ //\Log::info('maleSite info is:');
|
|
|
|
+ //\Log::info($info);
|
|
|
|
+ if($info && isset($info->fans_gender)){
|
|
|
|
+ if($info->fans_gender == 1){
|
|
|
|
+ return 1;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|