Your Name 2 years ago
parent
commit
3c51217f38
2 changed files with 5 additions and 4 deletions
  1. 2 2
      service/agent/database/soft_cash.php
  2. 3 2
      service/agent/lib/Soft_cash.php

+ 2 - 2
service/agent/database/soft_cash.php

@@ -240,11 +240,11 @@ return array
             # 匹配的正则或函数 选填项
             'option' => array
             (
-                'main' => 'yes',
+                // 'main' => 'yes',
                 'mobile' => 'yes',
                 'state' => 1,
             ),
-            'order' => array('main' => 'asc','id' => 'desc'),
+            'order' => array('id' => 'desc'),
             'type' => 'all',
             'col' => '*',
         ),

+ 3 - 2
service/agent/lib/Soft_cash.php

@@ -286,14 +286,15 @@ Class Soft_cash
         $value = Dever::input('value');
         if ($value) {
             $data = Dever::db('agent/soft_cash')->getList(array('mobile' => $value));
+            // print_R($data);die;
             $table = array();
             if ($data) {
                 $table = array();
                 $table['head'] = array('序列号', '姓名', '手机号');
                 $table['body'] = array();
-                $main = '';
                 foreach ($data as $k => $v) {
-                    $table['body'][] = array($v['mobile'], $v['name'], $v['mobile'],$main);
+                    $member = Dever::db('agent/member')->find($v['mid']);
+                    $table['body'][] = array($k+1, $member['name'], $v['mobile']);
                 }
 
                 $result[] = array