|
@@ -24,7 +24,7 @@ class AddrLogic extends BaseLogic
|
|
|
->withAttr('addr_code', function ($val) {
|
|
|
return explode(',', $val);
|
|
|
})->withAttr('addr_name', function ($val, $da) {
|
|
|
- return get_addr_name($da['addr_code']);
|
|
|
+ return get_addr_name_array($da['addr_code']);
|
|
|
})
|
|
|
->order('id', 'desc')
|
|
|
->select()
|
|
@@ -58,7 +58,7 @@ class AddrLogic extends BaseLogic
|
|
|
->withAttr('addr_code', function ($val) {
|
|
|
return explode(',', $val);
|
|
|
})->withAttr('addr_name', function ($val, $da) {
|
|
|
- return get_addr_name($da['addr_code']);
|
|
|
+ return get_addr_name_array($da['addr_code']);
|
|
|
})
|
|
|
->findOrEmpty()
|
|
|
->toArray();
|