|
@@ -7,7 +7,7 @@ use Dever;
|
|
|
class Cron
|
|
|
{
|
|
|
|
|
|
- public function geo()
|
|
|
+ public function geo_api()
|
|
|
{
|
|
|
Dever::config('base')->hook = true;
|
|
|
$shop = Dever::db('shop/info')->select();
|
|
@@ -19,7 +19,7 @@ class Cron
|
|
|
$update['lng'] = $geo[0];
|
|
|
$update['lat'] = $geo[1];
|
|
|
$update['map'] = $geo[2];
|
|
|
- $update['coord_address'] = $address;
|
|
|
+ $update['coord_address'] = $v['address'];
|
|
|
$update['where_id'] = $v['id'];
|
|
|
Dever::db('shop/info')->update($update);
|
|
|
}
|