Browse Source

activity bugs

zz 6 years ago
parent
commit
8d6ab9a7bd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Http/Controllers/Wap/Web/ActivityController.php

+ 2 - 1
app/Http/Controllers/Wap/Web/ActivityController.php

@@ -164,6 +164,7 @@ class ActivityController extends BaseController
                 if($count_info && $count_info->count){
                 if($count_info && $count_info->count){
                     $count = $count_info->count;
                     $count = $count_info->count;
                 }
                 }
+                $default_url = env('H5_SCHEME', 'https') . '://site' . $this->en_distribution_channel_id . '.' . env('CUSTOM_HOST') . '.com';
                 foreach ($products as $v) {
                 foreach ($products as $v) {
                     $param = [
                     $param = [
                         'uid' => $this->uid,
                         'uid' => $this->uid,
@@ -171,7 +172,7 @@ class ActivityController extends BaseController
                         'product_id' => $v,
                         'product_id' => $v,
                         'activity_id' => $activity_info->id,
                         'activity_id' => $activity_info->id,
                         'fromtype' => $from,
                         'fromtype' => $from,
-                        'pay_redirect_url' => '/activity/huaweiActivity?'.http_build_query($request_param),
+                        'pay_redirect_url' => $default_url.'/activity/huaweiActivity?'.http_build_query($request_param),
                         'limit' => 100,
                         'limit' => 100,
                     ];
                     ];
                     $url[] = env('CREATE_PAY_URL') . '?' . http_build_query($param);
                     $url[] = env('CREATE_PAY_URL') . '?' . http_build_query($param);