|
|
@@ -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;
|
|
|
}
|
|
|
}
|