@@ 130-140 (lines=11) @@ | ||
127 | throw new ShopsException('请传入合法的省份名!!!'); |
|
128 | } |
|
129 | ||
130 | foreach ($citys[0] as $city) { |
|
131 | $this->attributes['custom'][] = array( |
|
132 | 'StartStandards' => $startStandards, |
|
133 | 'StartFees' => $startFees, |
|
134 | 'AddStandards' => $addStandards, |
|
135 | 'AddFees' => $addFees, |
|
136 | 'DestCountry' => $destCountry, |
|
137 | 'DestProvince' => $province, |
|
138 | 'DestCity' => $city, |
|
139 | ); |
|
140 | } |
|
141 | } |
|
142 | ||
143 | return $this; |
|
@@ 152-164 (lines=13) @@ | ||
149 | $destCity = is_string($destCity) ? array($destCity) : $destCity; |
|
150 | ||
151 | if (is_array($destCity)) { |
|
152 | foreach ($destCity as $city) { |
|
153 | $this->attributes['custom'][] = array( |
|
154 | 'StartStandards' => $startStandards, |
|
155 | 'StartFees' => $startFees, |
|
156 | 'AddStandards' => $addStandards, |
|
157 | 'AddFees' => $addFees, |
|
158 | 'DestCountry' => $destCountry, |
|
159 | 'DestProvince' => $destProvince, |
|
160 | 'DestCity' => $city, |
|
161 | ); |
|
162 | } |
|
163 | } |
|
164 | ||
165 | return $this; |
|
166 | } |
|
167 | } |