Browse Source

清算列表

shish 5 years ago
parent
commit
5e14d92425
1 changed files with 10 additions and 4 deletions
  1. 10 4
      biz-ghs/clear/services/ClearService.php

+ 10 - 4
biz-ghs/clear/services/ClearService.php

@@ -26,13 +26,19 @@ class ClearService extends BaseService
             $type = $val['type'] ?? 1;
             $operator = '';
             if ($ptStyle == dict::getDict('ptStyle', 'hd')) {
-
+                $data['list'][$key]['ghsAvatar'] = imgUtil::groupImg($val['ghsAvatar']);
+                if ($type == 2) {
+                    $operator = '商家';
+                }
             }
-            if ($type == 1) {
-
+            if ($ptStyle == dict::getDict('ptStyle', 'ghs')) {
+                $data['list'][$key]['customAvatar'] = imgUtil::groupImg($val['customAvatar']);
+                if ($type == 1) {
+                    $operator = '客户';
+                }
             }
             $data['list'][$key]['operator'] = $operator;
-            $data['list'][$key]['avatar'] = imgUtil::groupImg($val['avatar']);
+
         }
         return $data;
     }