Thursday, September 15, 2011

在Modoer2.0中更换为Google地图后修复“地图坐标不正确” 问题

在./data/cachefiles/item_field_1.php里,找“地图坐标不正确”

 4 =>
  array (
    'fieldid' => '5',
    'modelid' => '1',
    'tablename' => 'subject',
    'fieldname' => 'mappoint',
    'title' => '地图坐标',
    'unit' => '',
    'style' => '',
    'template' => '',
    'note' => '',
    'type' => 'mappoint',
    'listorder' => '4',
    'allownull' => '0',
    'enablesearch' => '0',
    'iscore' => '1',
    'isadminfield' => '0',
    'show_list' => '0',
    'show_detail' => '1',
    'regular' => '/[0-9a-z]+,[0-9a-z]+/i',
    'errmsg' => '地图坐标不正确',
    'datatype' => 'varchar(60)',
    'config' =>
    array (
      'default' => '',
      'size' => '30',
    ),
    'disable' => '0',
  ),



'regular' => '/[0-9a-z]+,[0-9a-z]+/i',
改成
'regular' => '/[\-\.0-9a-z]+,[\-\.0-9a-z]+/i',

No comments:

Post a Comment

RISC-v emulator

Changes are based on https://risc-v-getting-started-guide.readthedocs.io/en/latest/linux-qemu.html For Ubuntu/Debian, in addition to sud...