浏览代码

完善功能

gorden 10 月之前
父节点
当前提交
5de14252a1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/admin/controller/order/RefundController.php

+ 2 - 2
app/admin/controller/order/RefundController.php

@@ -80,11 +80,11 @@ class RefundController extends Curd
     public function afterQuery($items)
     {
         foreach ($items as &$item){
-            if (!empty($item['order_return_apply_json'])){
+            if (!empty($item['order_return_apply_json']) && is_json($item['order_return_apply_json'])){
                 $json = json_decode($item['order_return_apply_json'],true);
                 $item['order_return_apply_json'] = $json['apply'];
             }
-            if (!empty($item['order_return_recharge_json'])){
+            if (!empty($item['order_return_recharge_json']) && is_json($item['order_return_recharge_json'])){
                 $json = json_decode($item['order_return_recharge_json'],true);
                 $item['order_return_recharge_json'] = $json['change'];
             }