dever 3 년 전
부모
커밋
c6fd9df720
2개의 변경된 파일13개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 0
      service/agent/src/My.php
  2. 10 4
      service/bill/lib/Cron.php

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

@@ -296,6 +296,9 @@ class My extends Core
         $this->data['type'] = $where['type'];
         if ($this->data['list']) {
             foreach ($this->data['list'] as $k => $v) {
+                if ($v['num'] <= 0) {
+                    continue;
+                }
                 if ($v['type'] == 1) {
                     $goods_info = Dever::load('goods/lib/info')->getInfoBySku($v['type_id'], $v['sku_id']);
                     if (isset($goods_info['sku'])) {

+ 10 - 4
service/bill/lib/Cron.php

@@ -67,13 +67,19 @@ class Cron
                 }
                 $temp = explode(',', $v['area']);
                 if ($role['type'] == 2) {
-                    if ($role['area'] == 1) {
+                    $area = '';
+                    if ($role['area'] == 1 && isset($temp[1])) {
                         # 城市
-
-                    } elseif ($role['area'] == 2) {
+                        $area = $temp[0] . ',' . $temp[1];
+                    } elseif ($role['area'] == 2 && isset($temp[2])) {
                         # 区县
-                    } elseif ($role['area'] == 3) {
+                        $area = $temp[0] . ',' . $temp[1] . ',' . $temp[2];
+                    } elseif ($role['area'] == 3 && isset($temp[3])) {
                         # 街道
+                        $area = $temp[0] . ',' . $temp[1] . ',' . $temp[2] . ',' . $temp[3];
+                    }
+                    if ($area) {
+                        
                     }
                 }
             }