Your Name 2 lat temu
rodzic
commit
5c4ad748f8
1 zmienionych plików z 13 dodań i 11 usunięć
  1. 13 11
      service/bill/lib/Cron.php

+ 13 - 11
service/bill/lib/Cron.php

@@ -601,17 +601,7 @@ class Cron
         $start = Dever::maketime($start_time);
         $end = Dever::maketime($end_time);
         $shops = Dever::db('shop/info')->getguiAll(array('type'=>2));
-        if ($shops) {
-            $shop_data = array();
-            foreach ($shops as $k => $v) {
-                if ($v['agent_mid'] <1) {
-                    $shop_data[$v['id']] = $v['name'];
-                }
-            }
-            if ($shop_data) {
-                Dever::alert('以下门店没有绑定代理商:' . implode(',', $shop_data));
-            }
-        }
+        
         foreach ($shops as $k => $v) {
             #业绩补贴:除了创V0.02,创V>=10个0.05,创V>=20个0.08
             // $subsidy = 0;
@@ -801,6 +791,18 @@ class Cron
     # 确认发放
     public function areaCash_commit_api()
     {
+        $shops = Dever::db('shop/info')->getguiAll(array('type'=>2));
+        if ($shops) {
+            $shop_data = array();
+            foreach ($shops as $k => $v) {
+                if ($v['agent_mid'] <1) {
+                    $shop_data[$v['id']] = $v['name'];
+                }
+            }
+            if ($shop_data) {
+                Dever::alert('以下门店没有绑定代理商:' . implode(',', $shop_data));
+            }
+        }
         $month = Dever::input('month');
         if ($month) {
             $month = Dever::maketime($month);