本文整理匯總了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') {