|
@@ -26,7 +26,6 @@ class UserChargeService
|
|
|
public static function getTemplate($uid,$send_order_id,$distribution_channel_id){
|
|
|
//获取模板id
|
|
|
$template_id = self::selectTemplate($uid,$send_order_id);
|
|
|
-
|
|
|
if($template_id == 0){
|
|
|
//official
|
|
|
$ids = env('OFFICIAL_TEMPLATE_IDS');
|
|
@@ -81,6 +80,34 @@ class UserChargeService
|
|
|
'product_id' => $v->id,
|
|
|
];
|
|
|
$data[] = $temp;
|
|
|
+ } elseif ($v->type == 'MONTH_ORDER') {
|
|
|
+ $save_text = '包月vip会员';
|
|
|
+ $text = '一月免费看';
|
|
|
+ $temp = [
|
|
|
+ 'price' => (int)$v->price . '元',
|
|
|
+ 'is_year_order' => 1,
|
|
|
+ 'is_month_order' => 0,
|
|
|
+ 'text' => $text,
|
|
|
+ 'today_special' => $v->is_default,
|
|
|
+ 'first_charge' => false,
|
|
|
+ 'save_text' => $save_text,
|
|
|
+ 'product_id' => $v->id,
|
|
|
+ ];
|
|
|
+ $data[] = $temp;
|
|
|
+ } elseif ($v->type == 'QUARTER_ORDER') {
|
|
|
+ $save_text = '包季vip会员';
|
|
|
+ $text = '4月免费看';
|
|
|
+ $temp = [
|
|
|
+ 'price' => (int)$v->price . '元',
|
|
|
+ 'is_year_order' => 1,
|
|
|
+ 'is_month_order' => 0,
|
|
|
+ 'text' => $text,
|
|
|
+ 'today_special' => $v->is_default,
|
|
|
+ 'first_charge' => false,
|
|
|
+ 'save_text' => $save_text,
|
|
|
+ 'product_id' => $v->id,
|
|
|
+ ];
|
|
|
+ $data[] = $temp;
|
|
|
} else {
|
|
|
if ($v->type == 'NEW_USER') {
|
|
|
continue;
|