@@ -53,24 +53,24 @@ |
||
| 53 | 53 | 'exceptions' => false, |
| 54 | 54 | ]; |
| 55 | 55 | |
| 56 | - if(!is_null($template)){ |
|
| 56 | + if (!is_null($template)) { |
|
| 57 | 57 | $function = 'tpl_single_send'; |
| 58 | 58 | $data = []; |
| 59 | 59 | |
| 60 | 60 | $templateData = $message->getData($this); |
| 61 | 61 | $templateData = isset($templateData) ? $templateData : []; |
| 62 | 62 | foreach ($templateData as $key => $value) { |
| 63 | - $data[] = urlencode('#'.$key.'#') . '=' . urlencode($value); |
|
| 63 | + $data[] = urlencode('#'.$key.'#').'='.urlencode($value); |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - $option['form_params'] = array_merge($option['form_params'],[ |
|
| 66 | + $option['form_params'] = array_merge($option['form_params'], [ |
|
| 67 | 67 | 'tpl_id' => $template, |
| 68 | 68 | 'tpl_value' => implode('&', $data) |
| 69 | 69 | ]); |
| 70 | - }else{ |
|
| 70 | + } else { |
|
| 71 | 71 | $content = $message->getContent($this); |
| 72 | 72 | $signature = $config->get('signature', ''); |
| 73 | - $option['form_params'] = array_merge($option['form_params'],[ |
|
| 73 | + $option['form_params'] = array_merge($option['form_params'], [ |
|
| 74 | 74 | 'text' => 0 === \stripos($content, '【') ? $content : $signature.$content |
| 75 | 75 | ]); |
| 76 | 76 | } |