...
|
...
|
@@ -357,7 +357,18 @@ class UserModel |
|
|
|
|
|
// 处理地址数据
|
|
|
if ($address && !isset($address['code'])) {
|
|
|
$result = $address;
|
|
|
$one = array();
|
|
|
foreach ($address as $val) {
|
|
|
$one = array();
|
|
|
$one['consignee'] = $val['addresseeName'];
|
|
|
$one['mobile'] = $val['mobile'];
|
|
|
$one['area'] = $val['area']['parent']['parent']['caption'] . $val['area']['parent']['caption'] . $val['area']['caption'];
|
|
|
$one['address'] = $val['address'];
|
|
|
$one['address_id'] = $val['id'];
|
|
|
$one['area_code'] = $val['areaCode'];
|
|
|
|
|
|
$result[] = $one;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return $result;
|
...
|
...
|
@@ -520,8 +531,9 @@ class UserModel |
|
|
$one['imgUrl'] = Helpers::getImageUrl($val['cover_image'], 640, 240);
|
|
|
$one['title'] = $val['filter_content'];
|
|
|
$one['content'] = $val['reply_content'];
|
|
|
$one['good'] = (bool)($val['is_reliable']);
|
|
|
$one['bad'] = !$one['good'];
|
|
|
$one['good'] = ($val['is_reliable'] == 1);
|
|
|
$one['bad'] = ($val['is_reliable'] == 2);
|
|
|
$one['none'] = ($val['is_reliable'] == 0);
|
|
|
|
|
|
$result[] = $one;
|
|
|
}
|
...
|
...
|
|