rabin 2 years ago
parent
commit
6daa426bae

+ 2 - 0
service/agent/database/member_goods.php

@@ -455,6 +455,8 @@ return array
             # 匹配的正则或函数 选填项
             'option' => array
             (
+                'type' => 'yes',
+                'name' => array('yes', 'like'),
                 'status' => 'yes',
                 'state' => 1,
             ),

+ 9 - 0
service/agent/lib/Dhorder.php

@@ -1232,9 +1232,18 @@ class Dhorder
     #权益管理导出
     public function out_member_goods_api(){
         $status = Dever::input('search_option_status');
+        $type = Dever::input('search_option_type');
+        $name = Dever::input('search_option_name');
         $where = array();
         $where['state'] = 1;
         $where['status'] = $status;
+        if ($type) {
+            $where['type'] = $type;
+        }
+        if ($name) {
+            $where['name'] = $name;
+        }
+        
         $data = Dever::db('agent/member_goods')->getExcelAll($where);
         $header = array('权益名称', '会员等级', '姓名', '手机号', '获取方式', '获取时间');
         $body = array();

+ 9 - 0
service/agent/src/Auth.php

@@ -8,6 +8,15 @@ class Auth
 {
     public function test()
     {
+        $data = 'eyJ0eXBlIjoyLCJvcmRlcl9pZCI6IjUwMDU2IiwicGFyZW50X21pZCI6IjUwMDIwIiwiY2FzaCI6MCwicGVyIjowfQ==,eyJ0eXBlIjoyLCJvcmRlcl9pZCI6IjUwMDU2IiwicGFyZW50X21pZCI6IjIwMzA2IiwiY2FzaCI6MCwicGVyIjowfQ==,eyJ0eXBlIjoyLCJvcmRlcl9pZCI6
+IjUwMDU2IiwicGFyZW50X21pZCI6IjIwMTY4IiwiY2FzaCI6MCwicGVyIjowfQ==,eyJ0eXBlIjoyLCJvcmRlcl9pZCI6IjUwMDU2IiwicGFyZW50X21pZCI6IjU3MzMiLCJjYXNoIjowLCJwZXIiOjB9,eyJ0eXBlIjoyLCJvcmRlcl9pZCI6IjUwMDU2IiwicGFyZW50X21pZCI6IjU0ODYiLCJjYXNoIjo3NTAsI
+nBlciI6IjE1In0=';
+        $data = explode(',', $data);
+        foreach ($data as $k => $v) {
+            print_r(Dever::array_decode($v));
+        }
+        die;
+        print_r($data);die;
         $data = Dever::db('agent/member')->fetchAll('select count(uid) as num,value from churen_invite_code group by value order by num asc');
 
         if ($data) {