浏览代码

完整地址

shish 6 年之前
父节点
当前提交
aff21ffc09
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 1
      app/shop/controllers/ApplyController.php
  2. 2 1
      biz/saas/classes/ApplyClass.php

+ 1 - 1
app/shop/controllers/ApplyController.php

@@ -59,7 +59,7 @@ class ApplyController extends BaseController
 		$get['lat'] = isset($get['latitude']) ? $get['latitude'] : '';
 		$introMerchantId = isset($get['introMerchantId']) && !empty($get['introMerchantId']) ? $get['introMerchantId'] : 0;
 		if (empty($introMerchantId)) {
-			util::fail('只有邀请才能注册哦~');
+			util::fail('只有邀请才能注册哦~');
 		}
 		$mobile = isset($get['mobile']) && !empty($get['mobile']) && stringUtil::isMobile($get['mobile']) ? $get['mobile'] : 0;
 		if (empty($mobile)) {

+ 2 - 1
biz/saas/classes/ApplyClass.php

@@ -34,7 +34,8 @@ class ApplyClass extends BaseClass
 		}
 		$prefix = $data['province'] == $data['city'] ? $data['province'] : $data['province'] . $data['city'];
 		$dist = isset($data['dist']) ? $data['dist'] : '';
-		$data['fullAddress'] = $prefix . $dist . $data['address'] . $data['floor'];
+		$floor = isset($data['floor']) ? $data['floor'] : '';
+		$data['fullAddress'] = $prefix . $dist . $data['address'] . $floor;
 		$time = time();
 		$data['addTime'] = $time;
 		$mobile = $data['mobile'];