Your Name 3 rokov pred
rodič
commit
87d37afe97

+ 11 - 0
service/agent/database/member.php

@@ -683,5 +683,16 @@ return array
             'type' => 'all',
             'col' => '*|id',
         ),
+        'getShopAll' => array
+        (
+            # 匹配的正则或函数 选填项
+            'option' => array
+            (
+                'shop_id' => array('yes','>='),
+                'state' => 1,
+            ),
+            'type' => 'all',
+            'col' => '*',
+        ),
     ),
 );

+ 14 - 0
service/agent/lib/Manage.php

@@ -763,4 +763,18 @@ class Manage
 
         return 'reload';
     }
+
+    public function memberShop_api(){
+        $data = Dever::db('agent/member')->getShopAll(array('shop_id'=>1,'state'=>1));
+        if($data){
+            foreach($data as $k=>$v){
+                $log = Dever::db('agent/member_shop_log')->find(array('mid'=>$v['id']));
+                if($log){ 
+                }else{
+                    Dever::db('agent/member_shop_log')->insert(array('mid'=>$v['id'],'new_shop_id'=>$v['shop_id'],'cdate'=>'1651680000'));
+                }
+            }
+        }
+        return 'ok';
+    }
 }