本文整理汇总了PHP中coupon::LocationGet方法的典型用法代码示例。如果您正苦于以下问题:PHP coupon::LocationGet方法的具体用法?PHP coupon::LocationGet怎么用?PHP coupon::LocationGet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类coupon
的用法示例。
在下文中一共展示了coupon::LocationGet方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: message
}
}
}
}
}
message('导入门店成功', referer(), 'success');
}
if ($do == 'location_sync') {
$id = intval($_GPC['id']);
$location = pdo_fetch('SELECT * FROM ' . tablename('coupon_location') . ' WHERE uniacid = :aid AND id = :id', array(':aid' => $_W['uniacid'], ':id' => $id));
if (empty($location)) {
message('门店不存在或已删除', referer(), 'error');
}
load()->classs('coupon');
$acc = new coupon($acid);
$location = $acc->LocationGet($location['location_id']);
if (is_error($location)) {
message("获取门店信息失败,错误详情:{$location['message']}", referer(), 'error');
}
$location = $location['business']['base_info'];
$status2local = array('', 3, 2, 1, 3);
$location['status'] = $status2local[$location['available_state']];
$location['location_id'] = $location['poi_id'];
$category_temp = explode(',', $location['categories'][0]);
$location['category'] = iserializer(array('cate' => $category_temp[0], 'sub' => $category_temp[1], 'clas' => $category_temp[2]));
$location['photo_list'] = iserializer($location['photo_list']);
unset($location['sid'], $location['categories'], $location['poi_id'], $location['update_status'], $location['available_state']);
pdo_update('coupon_location', $location, array('acid' => $acid, 'id' => $id));
message('更新门店信息成功', referer(), 'success');
}
if ($do == 'whitelist') {