Accept Merge Request #30: (feature/dgg -> develop)
Merge Request: fix: 修复派单详情无图片时,接口报错问题 Created By: @大狗哥 Accepted By: @大狗哥 URL: https://g-bcrc3009.coding.net/p/allocatr/d/allocatr/git/merge/30?initial=true
This commit is contained in:
commit
f22f3547f4
|
|
@ -21,6 +21,10 @@ class OrderDispatch extends Model
|
|||
|
||||
public function getArriveImagesAttr($val)
|
||||
{
|
||||
if (empty($val)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$images = explode(',', $val);
|
||||
foreach ($images as $k => $v) {
|
||||
$images[$k] = cdnurl($v, true);
|
||||
|
|
@ -31,6 +35,10 @@ class OrderDispatch extends Model
|
|||
|
||||
public function getImagesAttr($val)
|
||||
{
|
||||
if (empty($val)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$images = explode(',', $val);
|
||||
foreach ($images as $k => $v) {
|
||||
$images[$k] = cdnurl($v, true);
|
||||
|
|
@ -41,6 +49,10 @@ class OrderDispatch extends Model
|
|||
|
||||
public function getImageAttr($val)
|
||||
{
|
||||
if (empty($val)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return cdnurl($val, true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user