ssvfdn 3 月之前
父节点
当前提交
4817152d98
共有 2 个文件被更改,包括 20 次插入20 次删除
  1. 19 19
      app/common/CommonUtils.php
  2. 1 1
      route/app.php

+ 19 - 19
app/common/CommonUtils.php

@@ -186,25 +186,25 @@ class CommonUtils
         // $item['tbb'] = CommonUtils::convertBalance($item['tbb'],$change);
         // $item['np'] = CommonUtils::convertBalance($item['np'],$change);
         // $item['ctw'] = CommonUtils::convertBalance($item['ctw'],$change);
-        $keysList = ['cptw','atw', 'tb', 'tbb','np', 'ctw'];
-        foreach ($keysList as $key) {
-            if(isset($item[$key])) {
-                $item[$key] = CommonUtils::convertBalance($item[$key],$change);
-            }
-        }
-        $item['aw'] = CommonUtils::convertBalance($item['aw'],$change);
-        if(!empty($item['lw'])) {
-            foreach ($item['lw'] as $key => $lw) {
-                if(is_array($lw)) {
-                    foreach ($lw as $k => $templw) {
-                        $lw[$k] = CommonUtils::convertBalance($templw,$change);
-                    }
-                    $item['lw'][$key] = $lw;
-                }else {
-                    $item['lw'][$key] = CommonUtils::convertBalance($lw,$change);
-                }
-            }
-        }
+        // $keysList = ['cptw','atw', 'tb', 'tbb','np', 'ctw'];
+        // foreach ($keysList as $key) {
+        //     if(isset($item[$key])) {
+        //         $item[$key] = CommonUtils::convertBalance($item[$key],$change);
+        //     }
+        // }
+        // $item['aw'] = CommonUtils::convertBalance($item['aw'],$change);
+        // if(!empty($item['lw'])) {
+        //     foreach ($item['lw'] as $key => $lw) {
+        //         if(is_array($lw)) {
+        //             foreach ($lw as $k => $templw) {
+        //                 $lw[$k] = CommonUtils::convertBalance($templw,$change);
+        //             }
+        //             $item['lw'][$key] = $lw;
+        //         }else {
+        //             $item['lw'][$key] = CommonUtils::convertBalance($lw,$change);
+        //         }
+        //     }
+        // }
         return $item;
     }
 }

+ 1 - 1
route/app.php

@@ -138,7 +138,7 @@ Route::group('merchant_statis', function () {
     // 商户数据
     Route::get('stage', 'MerchantStatis/Stage');
     // 商户每日数据
-    Route::get('daily', 'MerchantStatis/Daily');    
+    Route::get('daily', 'MerchantStatis/Daily');
     // 商户历史数据
     Route::get('history', 'MerchantStatis/history');
 })->middleware([\app\middleware\AuthMiddleware::class, \app\middleware\BehaviorLogMiddleware::class]);