|
@@ -158,6 +158,7 @@ class Index extends Api
|
|
|
}
|
|
|
|
|
|
$id = input('id', 0, 'intval'); //活动id
|
|
|
+ $collectionplace = input('collectionplace', '', 'trim'); //集合地点
|
|
|
//人员信息json串:
|
|
|
// name姓名 credtype证件类型 idcard身份证号 mobile手机号 emergencycontact紧急联系人 contactmobile紧急联系方式
|
|
|
// insurance保险 originalprice原价 vipprice会员价 coupon_id用户优惠券ID is_free是否使用免费次数:0=否,1=是
|
|
@@ -166,6 +167,9 @@ class Index extends Api
|
|
|
$paytype = input('paytype', 0, 'intval'); //支付方式:0=余额,1=微信
|
|
|
$total_price = input('total_price', 0, 'trim'); //总价格
|
|
|
|
|
|
+ if ($collectionplace === '' || iconv_strlen($collectionplace, 'utf-8') > 255) {
|
|
|
+ $this->error('请选择集合地点');
|
|
|
+ }
|
|
|
if (!preg_match('/^[0-9]+(.[0-9]{1,2})?$/', $total_price) || $total_price < 0) {
|
|
|
$this->error('合计价格错误');
|
|
|
}
|
|
@@ -475,6 +479,7 @@ class Index extends Api
|
|
|
$order_data['order_sn'] = date('YmdHis', time()) . rand(10000000, 99999999);
|
|
|
$order_data['active_id'] = $id;
|
|
|
$order_data['user_id'] = $this->auth->id;
|
|
|
+ $order_data['collectionplace'] = $collectionplace;
|
|
|
$order_data['paytype'] = $paytype;
|
|
|
$order_data['price'] = $total_amount;
|
|
|
$order_data['number'] = count($active_people_arr);
|