| @@ 100-105 (lines=6) @@ | ||
| 97 | if (is_array($templateVar) && $count > 0) { |
|
| 98 | foreach ($templateVar as $key => $value) { |
|
| 99 | if ($hasKey) { |
|
| 100 | if ($value == 'verifyCode') { |
|
| 101 | $this->verifyCode = $this->makeRandom(); |
|
| 102 | $this->templateVar[$key] = "{$this->verifyCode}"; |
|
| 103 | } else { |
|
| 104 | $this->templateVar[$key] = "{$value}"; |
|
| 105 | } |
|
| 106 | } else { |
|
| 107 | if ($value == 'verifyCode') { |
|
| 108 | $this->verifyCode = $this->makeRandom(); |
|
| @@ 106-113 (lines=8) @@ | ||
| 103 | } else { |
|
| 104 | $this->templateVar[$key] = "{$value}"; |
|
| 105 | } |
|
| 106 | } else { |
|
| 107 | if ($value == 'verifyCode') { |
|
| 108 | $this->verifyCode = $this->makeRandom(); |
|
| 109 | $this->templateVar[] = "{$this->verifyCode}"; |
|
| 110 | } else { |
|
| 111 | $this->templateVar[] = "{$value}"; |
|
| 112 | } |
|
| 113 | } |
|
| 114 | } |
|
| 115 | } else { |
|
| 116 | $this->templateVar = []; |
|