@@ -275,7 +275,7 @@ |
||
| 275 | 275 | $data = $template->data; |
| 276 | 276 | $replace = [ |
| 277 | 277 | 'name' => $user->first_name.' '.$user->last_name, |
| 278 | - 'serialkeyurl' => $myaccounturl, |
|
| 278 | + 'serialkeyurl' => $myaccounturl, |
|
| 279 | 279 | 'downloadurl' => $downloadurl, |
| 280 | 280 | 'invoiceurl' => $invoiceurl, |
| 281 | 281 | 'product' => $product, |
@@ -50,18 +50,18 @@ discard block |
||
| 50 | 50 | } |
| 51 | 51 | if ($interestGroupIdForNo && $productGroupId) { |
| 52 | 52 | $result = $this->mailchimp->patch("lists/$this->list_id/members/$hash", [ |
| 53 | - 'interests' => [$interestGroupIdForNo => true, $interestGroupIdForYes=>false, $productGroupId =>true], |
|
| 54 | - ]); |
|
| 53 | + 'interests' => [$interestGroupIdForNo => true, $interestGroupIdForYes=>false, $productGroupId =>true], |
|
| 54 | + ]); |
|
| 55 | 55 | //refer to https://us7.api.mailchimp.com/playground |
| 56 | 56 | } elseif ($interestGroupIdForNo && $productGroupId == null) { |
| 57 | 57 | $result = $this->mailchimp->patch("lists/$this->list_id/members/$hash", [ |
| 58 | - 'interests' => [$interestGroupIdForNo => true, $interestGroupIdForYes=>false], |
|
| 59 | - ]); |
|
| 58 | + 'interests' => [$interestGroupIdForNo => true, $interestGroupIdForYes=>false], |
|
| 59 | + ]); |
|
| 60 | 60 | //refer to https://us7.api.mailchimp.com/playground |
| 61 | 61 | } elseif ($productGroupId && $interestGroupIdForNo == null || $interestGroupIdForYes == null) { |
| 62 | 62 | $result = $this->mailchimp->patch("lists/$this->list_id/members/$hash", [ |
| 63 | - 'interests' => [$productGroupId =>true], |
|
| 64 | - ]); |
|
| 63 | + 'interests' => [$productGroupId =>true], |
|
| 64 | + ]); |
|
| 65 | 65 | } |
| 66 | 66 | } catch (Exception $ex) { |
| 67 | 67 | $exe = json_decode($ex->getMessage(), true); |
@@ -85,18 +85,18 @@ discard block |
||
| 85 | 85 | } |
| 86 | 86 | if ($interestGroupIdForNo && $productGroupId) { |
| 87 | 87 | $result = $this->mailchimp->patch("lists/$this->list_id/members/$hash", [ |
| 88 | - 'interests' => [$interestGroupIdForNo => false, $interestGroupIdForYes=>true, $productGroupId =>true], |
|
| 89 | - //refer to https://us7.api.mailchimp.com/playground |
|
| 90 | - ]); |
|
| 88 | + 'interests' => [$interestGroupIdForNo => false, $interestGroupIdForYes=>true, $productGroupId =>true], |
|
| 89 | + //refer to https://us7.api.mailchimp.com/playground |
|
| 90 | + ]); |
|
| 91 | 91 | } elseif ($interestGroupIdForNo && $productGroupId == null) { |
| 92 | 92 | $result = $this->mailchimp->patch("lists/$this->list_id/members/$hash", [ |
| 93 | - 'interests' => [$interestGroupIdForNo => false, $interestGroupIdForYes=>true], |
|
| 94 | - ]); |
|
| 93 | + 'interests' => [$interestGroupIdForNo => false, $interestGroupIdForYes=>true], |
|
| 94 | + ]); |
|
| 95 | 95 | //refer to https://us7.api.mailchimp.com/playground |
| 96 | 96 | } elseif ($productGroupId && $interestGroupIdForNo == null || $interestGroupIdForYes == null) { |
| 97 | 97 | $result = $this->mailchimp->patch("lists/$this->list_id/members/$hash", [ |
| 98 | - 'interests' => [$productGroupId =>true], |
|
| 99 | - ]); |
|
| 98 | + 'interests' => [$productGroupId =>true], |
|
| 99 | + ]); |
|
| 100 | 100 | } |
| 101 | 101 | //refer to https://us7.api.mailchimp.com/playground |
| 102 | 102 | } catch (Exception $ex) { |