本文整理汇总了PHP中coupon::LocationAdd方法的典型用法代码示例。如果您正苦于以下问题:PHP coupon::LocationAdd方法的具体用法?PHP coupon::LocationAdd怎么用?PHP coupon::LocationAdd使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类coupon
的用法示例。
在下文中一共展示了coupon::LocationAdd方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: intval
}
$data['avg_price'] = intval($_GPC['avg_price']);
if (empty($_GPC['open_time_start']) || empty($_GPC['open_time_end'])) {
message('营业时间不能为空');
} else {
$data['open_time'] = $_GPC['open_time_start'] . '-' . $_GPC['open_time_end'];
}
$data['recommend'] = urlencode(trim($_GPC['recommend']));
$data['special'] = trim($_GPC['special']) ? urlencode(trim($_GPC['special'])) : message('特色服务不能为空');
$data['introduction'] = urlencode(trim($_GPC['introduction']));
$data['offset_type'] = 1;
$maxid = pdo_fetchcolumn('SELECT MAX(id) FROM ' . tablename('coupon_location'));
$data['sid'] = $maxid + 1;
load()->classs('coupon');
$acc = new coupon($acid);
$status = $acc->LocationAdd($data);
if (is_error($status)) {
message($status['message'], '', 'error');
}
$insert['uniacid'] = $_W['uniacid'];
$insert['acid'] = $acid;
$insert['business_name'] = trim($_GPC['business_name']);
$insert['branch_name'] = trim($_GPC['branch_name']);
$insert['category'] = iserializer($in_cate);
$insert['province'] = trim($_GPC['reside']['province']);
$insert['city'] = trim($_GPC['reside']['city']);
$insert['district'] = trim($_GPC['reside']['district']);
$insert['address'] = trim($_GPC['address']);
$insert['longitude'] = trim($_GPC['baidumap']['lng']);
$insert['latitude'] = trim($_GPC['baidumap']['lat']);
$insert['telephone'] = trim($_GPC['telephone']);