!22 修复-后台订单管理中,有未支付的订单页面报错

Merge pull request !22 from elonfun/v6
This commit is contained in:
Anyon 2022-02-27 04:52:14 +00:00 committed by Gitee
commit b3ab73d624
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -89,7 +89,11 @@ class Order extends Controller
UserAdminService::instance()->buildByUid($data);
UserAdminService::instance()->buildByUid($data, 'puid1', 'from');
OrderService::instance()->buildData($data);
foreach ($data as &$vo) $vo['payment_name'] = PaymentService::name($vo['payment_type']);
foreach ($data as &$vo){
if (!is_null($vo['payment_type']) and ''!=$vo['payment_type']) {
$vo['payment_name'] = PaymentService::name($vo['payment_type']);
}
}
}
/**