@@ 124-134 (lines=11) @@ | ||
121 | ||
122 | if (empty($citys)) throw new ShopsException('请传入合法的省份名!!!'); |
|
123 | ||
124 | foreach ($citys[0] as $city) { |
|
125 | $this->attributes['custom'][] = array( |
|
126 | 'StartStandards' => $startStandards, |
|
127 | 'StartFees' => $startFees, |
|
128 | 'AddStandards' => $addStandards, |
|
129 | 'AddFees' => $addFees, |
|
130 | 'DestCountry' => $destCountry, |
|
131 | 'DestProvince' => $province, |
|
132 | 'DestCity' => $city |
|
133 | ); |
|
134 | } |
|
135 | ||
136 | } |
|
137 | ||
@@ 148-160 (lines=13) @@ | ||
145 | $destCity = is_string($destCity) ? array($destCity) : $destCity; |
|
146 | ||
147 | if (is_array($destCity)) { |
|
148 | foreach ($destCity as $city) { |
|
149 | ||
150 | $this->attributes['custom'][] = array( |
|
151 | 'StartStandards' => $startStandards, |
|
152 | 'StartFees' => $startFees, |
|
153 | 'AddStandards' => $addStandards, |
|
154 | 'AddFees' => $addFees, |
|
155 | 'DestCountry' => $destCountry, |
|
156 | 'DestProvince' => $destProvince, |
|
157 | 'DestCity' => $city |
|
158 | ); |
|
159 | ||
160 | } |
|
161 | } |
|
162 | ||
163 |