rabin 3 سال پیش
والد
کامیت
82ce490e9e
4فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 1 1
      config/env/localhost/default.php
  2. 2 2
      service/agent/database/member.php
  3. 1 1
      service/agent/lib/Import.php
  4. 4 0
      service/agent/lib/Manage.php

+ 1 - 1
config/env/localhost/default.php

@@ -142,7 +142,7 @@ if (DEVER_APP_NAME == 'source') {
 */
 
 
-$host = 'http://'.$local . '/';
+$host = 'http://'.$local . '/churen/';
 
 $name = '';
 

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

@@ -168,7 +168,7 @@ return array
             'default'   => '',
             'desc'      => '请输入手机号',
             'match'     => Dever::rule('mobile'),
-            //'update'    => 'text',
+            'update'    => 'hidden',
             //'search'    => 'fulltext',
             //'list'      => true,
         ),
@@ -657,7 +657,7 @@ return array
             # 匹配的正则或函数 选填项
             'option' => array
             (
-                'col' => 'yes-mobile,name',
+                'col' => array('yes-mobile,name', 'like'),
             ),
             'type' => 'all',
             'col' => '*|id',

+ 1 - 1
service/agent/lib/Import.php

@@ -113,7 +113,7 @@ class Import
                     }
                     
                 } else {
-                    if ($v['province'] && $v['city'] && $v['area'] && $v['street']) {
+                    if ($v['province'] && $v['city']) {
                         list($data['area'], $new) = Dever::load('area/api')->upByName($v['province'], $v['city'], $v['area'], $v['street'], $v['streetvalue']);
                         # 记录日志
                         if ($data['area'] && strstr($data['area'], '-1')) {

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

@@ -8,6 +8,10 @@ class Manage
 {
     public function relation_api()
     {
+        $admin = Dever::load('manage/auth.data');
+        if ($admin['id'] != 1) {
+            Dever::alert('无法访问');
+        }
         $data = array();
         $data['mobile'] = Dever::input('mobile');
         $member = Dever::db('agent/member')->find(array('mobile' => $data['mobile']));