Your Name %!s(int64=2) %!d(string=hai) anos
pai
achega
4acf01d5ad
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      service/agent/database/member.php

+ 4 - 2
service/agent/database/member.php

@@ -173,6 +173,7 @@ return array
             'desc'      => '',
             'update'    => 'date',
             'callback'  => 'maketime',
+            'search'    => $search_auth == 2 ? 'date' : false,
             // 'list'        => '{rdate} > 0 ? date("Y-m-d H:i", {rdate}) : "无"',
             'list'      => $search_auth == 1 ? 'Dever::load("agent/lib/member.set_rdate", {id})' : false,
             'list_order' => 100,
@@ -252,13 +253,13 @@ return array
             'desc'      => '邀请人',
             'match'     => 'is_string',
             //'update'    => 'text',
-            'search'    => array
+            'search'    => $search_auth == 1 ? array
             (
                 'api' => 'agent/member-getSearch',
                 'col' => 'col',
                 'result' => 'id',
                 'search' => 'parent_mid',
-            ),
+            ) : false,
             'list_name' => '上级信息',
             'list'      => $search_auth == 1 ? 'Dever::load("agent/lib/member.getOne", {parent_mid})' : false,
         ),
@@ -621,6 +622,7 @@ return array
             'name'      => '加入日期',
             'match'     => array('is_numeric', time()),
             'desc'      => '',
+            'search'    => $search_auth == 2 ? 'date' : false,
             # 只有insert时才生效
             'insert'    => true,
             //'search'    => 'date',