setterr
parent
1ede9fad50
commit
c445c5fcc2
|
@ -35,6 +35,7 @@ class Consumer extends Base
|
|||
'businessType' => $this->request->param('businessType/d', 0), // 商家类型
|
||||
'couponType' => $this->request->param('couponType/d', 0), // 优惠卷类型
|
||||
'businessCode' => $this->request->param('businessCode/s'), // 商家code
|
||||
'businessCircleId' => $this->request->param('businessCircle/d',0), // 商圈id
|
||||
'dis' => $this->request->param('dis/d', -1), // 距离,单位为km
|
||||
'lng' => $this->request->param('lng/f', 0), // 经度 104.752890
|
||||
'lat' => $this->request->param('lat/f', 0), // 纬度 31.465040
|
||||
|
@ -72,6 +73,9 @@ class Consumer extends Base
|
|||
if (!empty($params['businessCode'])) {
|
||||
$whereMap[] = ['business_code', '=', $params['businessCode']];
|
||||
}
|
||||
if (($params['businessCircleId']) > 0 ) {
|
||||
$whereMap[] = ['business_circle_id', '=', $params['businessCircleId']];
|
||||
}
|
||||
|
||||
if ($params['dis'] > 0) {
|
||||
$pointList = getEarthSquareRangePoint($params['lat'],$params['lng'], $params['dis']);
|
||||
|
|
|
@ -527,6 +527,7 @@ class Coupon extends Base
|
|||
$couponMain['business_name'] = $account->business['business_name'];
|
||||
$couponMain['lng'] = $account->business['lng'];
|
||||
$couponMain['lat'] = $account->business['lat'];
|
||||
$couponMain['business_circle_id'] = $account->business['business_circle_id'];
|
||||
$couponMain['create_time'] = date("Y-m-d H:i:s");
|
||||
|
||||
//保留两位小数
|
||||
|
|
|
@ -222,6 +222,7 @@ class Coupon extends Base
|
|||
$data['business_name'] = $business['business_name'];
|
||||
$data['lng'] = $business['lng'];
|
||||
$data['lat'] = $business['lat'];
|
||||
$data['business_circle_id'] = $business['business_circle_id'];
|
||||
|
||||
|
||||
$type = CouponRepository::getInstance()->getCouponTypeAll();
|
||||
|
|
Loading…
Reference in New Issue