@@ -142,7 +142,7 @@ if (DEVER_APP_NAME == 'source') {
*/
-$host = 'http://'.$local . '/';
+$host = 'http://'.$local . '/churen/';
$name = '';
@@ -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',
@@ -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')) {
@@ -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']));