rabin 3 年之前
父節點
當前提交
1fef3b757c
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 3 0
      service/agent/lib/Import.php
  2. 3 0
      service/option/src/My.php

+ 3 - 0
service/agent/lib/Import.php

@@ -99,6 +99,9 @@ class Import
                 if ($v['streetvalue']) {
                     $data['area'] .= ',' . $v['streetvalue'];
                 }
+                if ($data['area']) {
+                    Dever::load('area/api')->up($v['province'], $v['city'], $v['area'], $v['street'], $data['area']);
+                }
 
                 if ($v['entertype'] == 1) {
                     $data['type'] = 1;

+ 3 - 0
service/option/src/My.php

@@ -61,6 +61,9 @@ class My extends Core
                 }
                 $total += $v['daijiaofu'];
                 $this->data['cash'][$k]['total'] = number_format($v['jiaofu'] + $v['fafang'] + $v['duifu'], 2, '.', '');
+                if ($this->data['cash'][$k]['total'] <= 0) {
+                    unseet($this->data['cash'][$k]);
+                }
             }
         }