Authored by 毕凯

Merge branch 'master' into release/4.5

@@ -25,6 +25,7 @@ class PayData @@ -25,6 +25,7 @@ class PayData
25 { 25 {
26 $param = Yohobuy::param(); 26 $param = Yohobuy::param();
27 $param['client_type'] = 'web'; 27 $param['client_type'] = 'web';
  28 + $param['uid'] = intval($uid);
28 $param['private_key'] = Yohobuy::$privateKeyList['web']; 29 $param['private_key'] = Yohobuy::$privateKeyList['web'];
29 $param['method'] = 'web.SpaceOrders.getOrderCountByUid'; 30 $param['method'] = 'web.SpaceOrders.getOrderCountByUid';
30 31
@@ -45,7 +45,7 @@ @@ -45,7 +45,7 @@
45 </li> 45 </li>
46 <li> 46 <li>
47 <i class="tell-icon iconfont">&#xe61c;</i> 47 <i class="tell-icon iconfont">&#xe61c;</i>
48 - <span>400-9889-9646</span> 48 + <span>400-8899-646</span>
49 </li> 49 </li>
50 {{/ tool}} 50 {{/ tool}}
51 </ul> 51 </ul>

48.3 KB | W: | H:

48.3 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

8.64 KB | W: | H:

8.64 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
1 { 1 {
2 "name": "web-yohobuy", 2 "name": "web-yohobuy",
3 - "version": "0.0.26", 3 + "version": "0.0.27",
4 "description": "web yohobuy static", 4 "description": "web yohobuy static",
5 "keywords": [], 5 "keywords": [],
6 "homepage": "", 6 "homepage": "",
@@ -199,13 +199,19 @@ class ItemModel @@ -199,13 +199,19 @@ class ItemModel
199 199
200 if (!empty($banner['brandId'])) { 200 if (!empty($banner['brandId'])) {
201 $domainBrand = BrandsModel::getBrandByDomain($banner['brandDomain']); 201 $domainBrand = BrandsModel::getBrandByDomain($banner['brandDomain']);
202 - if (empty($domainBrand['type']) || $domainBrand['type'] !== 2) { 202 + if (!empty($domainBrand['type']) && !empty($domainBrand['shopId'])) {
  203 + switch (intval($domainBrand['type'])) {
  204 + case 1:
203 //多品店不显示 205 //多品店不显示
204 $banner = array(); 206 $banner = array();
205 - } else { 207 + break;
  208 + case 2:
  209 + //单品店显示新版的店铺banner
206 $basisData = ShopModel::basisTemplate($domainBrand['shopId']); 210 $basisData = ShopModel::basisTemplate($domainBrand['shopId']);
207 $banner['bgImg'] = empty($basisData['shopTopBanner']['banner']) ? 211 $banner['bgImg'] = empty($basisData['shopTopBanner']['banner']) ?
208 $banner['bgImg'] : $basisData['shopTopBanner']['banner']; 212 $banner['bgImg'] : $basisData['shopTopBanner']['banner'];
  213 + break;
  214 + }
209 } 215 }
210 } 216 }
211 217
@@ -426,7 +426,10 @@ class ShopModel @@ -426,7 +426,10 @@ class ShopModel
426 } 426 }
427 } 427 }
428 428
429 - return $result; 429 + return array(
  430 + 'title' => empty($result[0]['title']) ? '' : $result[0]['title'],
  431 + 'list'=> $result
  432 + );
430 } 433 }
431 434
432 /** 435 /**
@@ -571,13 +574,8 @@ class ShopModel @@ -571,13 +574,8 @@ class ShopModel
571 $list = self::$fun(self::getResourceData($list), $parameters); 574 $list = self::$fun(self::getResourceData($list), $parameters);
572 switch ($fun) { 575 switch ($fun) {
573 case 'shopTopBanner': 576 case 'shopTopBanner':
574 - $data[$fun] = $list;  
575 - break;  
576 case 'signboard': 577 case 'signboard':
577 - $data[$fun] = array(  
578 - 'title' => isset($list[0]['title']) ? $list[0]['title'] : '',  
579 - 'list'=> $list  
580 - ); 578 + $data[$fun] = $list;
581 break; 579 break;
582 } 580 }
583 } 581 }
@@ -169,9 +169,10 @@ class PayModel @@ -169,9 +169,10 @@ class PayModel
169 $orderCount = 0; 169 $orderCount = 0;
170 $orders = PayData::getOrderCountByUid($uid); 170 $orders = PayData::getOrderCountByUid($uid);
171 171
172 - if (isset($orders['data']) && !empty($orders['data'])) {  
173 - $orderCount = $orders['data']['total']; 172 + if (!empty($orders['data']['count'])) {
  173 + $orderCount = $orders['data']['count'];
174 } 174 }
  175 +
175 $result['isOldUser'] = (intval($orderCount) > self::OLD_USER_LIMIT) ? true : false; 176 $result['isOldUser'] = (intval($orderCount) > self::OLD_USER_LIMIT) ? true : false;
176 // 订单数(用于订单统计) 177 // 订单数(用于订单统计)
177 $result['orderCount'] = $orderCount; 178 $result['orderCount'] = $orderCount;
@@ -173,9 +173,10 @@ class PaymentModel @@ -173,9 +173,10 @@ class PaymentModel
173 //查询用户订单数接口 173 //查询用户订单数接口
174 $orders = PayData::getOrderCountByUid($uid); 174 $orders = PayData::getOrderCountByUid($uid);
175 175
176 - if (isset($orders['data']) && !empty($orders['data'])) {  
177 - $orderCount = $orders['data']['total']; 176 + if (!empty($orders['data']['count'])) {
  177 + $orderCount = $orders['data']['count'];
178 } 178 }
  179 +
179 $result['isOldUser'] = (intval($orderCount) > self::OLD_USER_LIMIT) ? true : false; 180 $result['isOldUser'] = (intval($orderCount) > self::OLD_USER_LIMIT) ? true : false;
180 // 订单数(用于订单统计) 181 // 订单数(用于订单统计)
181 $result['orderCount'] = $orderCount; 182 $result['orderCount'] = $orderCount;
@@ -390,9 +390,10 @@ class IndexController extends WebAction @@ -390,9 +390,10 @@ class IndexController extends WebAction
390 $paymentType = $this->post('paymentType', 1); 390 $paymentType = $this->post('paymentType', 1);
391 $couponCode = $this->post('couponCode', null); 391 $couponCode = $this->post('couponCode', null);
392 $yohoCoin = $this->post('yohoCoin', null); 392 $yohoCoin = $this->post('yohoCoin', null);
  393 + $promotionCode = $this->post('promotionCode', null);
393 $redEnvelopes = $this->post('redEnvelopes', null); 394 $redEnvelopes = $this->post('redEnvelopes', null);
394 $uid = $this->getUid(false); 395 $uid = $this->getUid(false);
395 - $result = CartModel::orderCompute($uid, $cartType, $deliveryWay, $paymentType, $couponCode, $yohoCoin, $redEnvelopes); 396 + $result = CartModel::orderCompute($uid, $cartType, $deliveryWay, $paymentType, $couponCode, $promotionCode, $yohoCoin, $redEnvelopes);
396 } 397 }
397 398
398 $this->echoJson($result); 399 $this->echoJson($result);
@@ -443,7 +444,8 @@ class IndexController extends WebAction @@ -443,7 +444,8 @@ class IndexController extends WebAction
443 $paymentId = $this->post('paymentId', 15); // 支付ID 444 $paymentId = $this->post('paymentId', 15); // 支付ID
444 $paymentType = $this->post('paymentType', 1); // 默认在线支付 445 $paymentType = $this->post('paymentType', 1); // 默认在线支付
445 $remark = $this->post('remark', ''); // 备注信息 446 $remark = $this->post('remark', ''); // 备注信息
446 - $couponCode = $this->post('couponCode', null); // 优惠码 447 + $couponCode = $this->post('couponCode', null); // 优惠券
  448 + $promotionCode = $this->post('promotionCode', null); // 优惠码
447 $yohoCoin = $this->post('yohoCoin', 1); // YOHO币 449 $yohoCoin = $this->post('yohoCoin', 1); // YOHO币
448 $isPreContact = $this->post('isPreContact', false); // 送货前是否联系 450 $isPreContact = $this->post('isPreContact', false); // 送货前是否联系
449 $isPrintPrice = $this->post('isPrintPrice', true); // 是否打印价格 451 $isPrintPrice = $this->post('isPrintPrice', true); // 是否打印价格
@@ -451,7 +453,7 @@ class IndexController extends WebAction @@ -451,7 +453,7 @@ class IndexController extends WebAction
451 453
452 // 调用下单接口 454 // 调用下单接口
453 $result = CartModel::orderSub($uid, $addressId, $cartType, $deliveryTimeId, $deliveryWayId, $invoiceTitle, $invoiceId, 455 $result = CartModel::orderSub($uid, $addressId, $cartType, $deliveryTimeId, $deliveryWayId, $invoiceTitle, $invoiceId,
454 - $paymentId, $paymentType, $remark, $couponCode, $yohoCoin, $isPreContact, $isPrintPrice, $redEnvelopes); 456 + $paymentId, $paymentType, $remark, $couponCode, $promotionCode, $yohoCoin, $isPreContact, $isPrintPrice, $redEnvelopes);
455 // 判断是否下单成功 457 // 判断是否下单成功
456 if (empty($result['data']['order_code'])) { 458 if (empty($result['data']['order_code'])) {
457 UdpLog::info('【结算信息】判断是否下单成功','order_code'.$result['data']['order_code']); 459 UdpLog::info('【结算信息】判断是否下单成功','order_code'.$result['data']['order_code']);
@@ -5,7 +5,7 @@ use Shopping\PayModel; @@ -5,7 +5,7 @@ use Shopping\PayModel;
5 use WebPlugin\Pay\PayFactory; 5 use WebPlugin\Pay\PayFactory;
6 use WebPlugin\Pay\Rspparams; 6 use WebPlugin\Pay\Rspparams;
7 use WebPlugin\Pay\weixin\PayNotifyCallBack; 7 use WebPlugin\Pay\weixin\PayNotifyCallBack;
8 - 8 +use WebPlugin\UdpLog;
9 /** 9 /**
10 * 支付Notice 10 * 支付Notice
11 */ 11 */
@@ -24,6 +24,7 @@ class NoticeController extends WebAction @@ -24,6 +24,7 @@ class NoticeController extends WebAction
24 public function alipaynoticeAction() 24 public function alipaynoticeAction()
25 { 25 {
26 $res = $this->getParseResponse($_POST, 2); 26 $res = $this->getParseResponse($_POST, 2);
  27 + UdpLog::info("【支付宝异步】,function:alipaynoticeAction,参数", array('pars' => $_POST, 'res' => $res));
27 if ($res->payResult != -1) { 28 if ($res->payResult != -1) {
28 $this->payResultProc($res, 2); 29 $this->payResultProc($res, 2);
29 echo "success"; 30 echo "success";
@@ -37,6 +38,7 @@ class NoticeController extends WebAction @@ -37,6 +38,7 @@ class NoticeController extends WebAction
37 public function alipayreturnAction() 38 public function alipayreturnAction()
38 { 39 {
39 $res = $this->getParseResponse($_GET, 2); 40 $res = $this->getParseResponse($_GET, 2);
  41 + UdpLog::info("【支付宝同步】,function:alipayreturnAction,参数", array('pars' => $_GET, 'res' => $res));
40 $dealResult = $this->payResultProc($res, 2); 42 $dealResult = $this->payResultProc($res, 2);
41 $dealResult['payData'] = array('payWay' => '支付宝'); 43 $dealResult['payData'] = array('payWay' => '支付宝');
42 $this->commonShowResult($dealResult); 44 $this->commonShowResult($dealResult);
@@ -48,6 +50,7 @@ class NoticeController extends WebAction @@ -48,6 +50,7 @@ class NoticeController extends WebAction
48 public function alibarcodenoticeAction() 50 public function alibarcodenoticeAction()
49 { 51 {
50 $res = $this->getParseResponse($_POST, 17); 52 $res = $this->getParseResponse($_POST, 17);
  53 + UdpLog::info("【支付宝二维码支付异步】,function:alibarcodenoticeAction,参数", array('pars' => $_POST, 'res' => $res));
51 if ($res->payResult != -1) { 54 if ($res->payResult != -1) {
52 $this->payResultProc($res, 17); 55 $this->payResultProc($res, 17);
53 echo "success"; 56 echo "success";
@@ -61,6 +64,7 @@ class NoticeController extends WebAction @@ -61,6 +64,7 @@ class NoticeController extends WebAction
61 public function alibarcodereturnAction() 64 public function alibarcodereturnAction()
62 { 65 {
63 $res = $this->getParseResponse($_GET, 17); 66 $res = $this->getParseResponse($_GET, 17);
  67 + UdpLog::info("【支付宝二维码支付同步】,function:alibarcodereturnAction,参数", array('pars' => $_GET, 'res' => $res));
64 $dealResult = $this->payResultProc($res, 17); 68 $dealResult = $this->payResultProc($res, 17);
65 $dealResult['payData'] = array('payWay' => '支付宝'); 69 $dealResult['payData'] = array('payWay' => '支付宝');
66 $this->commonShowResult($dealResult); 70 $this->commonShowResult($dealResult);
@@ -225,6 +229,7 @@ class NoticeController extends WebAction @@ -225,6 +229,7 @@ class NoticeController extends WebAction
225 $uid = $this->getSession(self::SESSION_UID_KEY); 229 $uid = $this->getSession(self::SESSION_UID_KEY);
226 $this->setSession(self::SESSION_UID_KEY, null); 230 $this->setSession(self::SESSION_UID_KEY, null);
227 } 231 }
  232 + UdpLog::info("【微信扫码支付结果商户通知地址】,function:wechatqrcodenotifyAction");
228 $notify = new PayNotifyCallBack($uid); 233 $notify = new PayNotifyCallBack($uid);
229 $notify->handle(false); 234 $notify->handle(false);
230 } 235 }
@@ -248,6 +253,7 @@ class NoticeController extends WebAction @@ -248,6 +253,7 @@ class NoticeController extends WebAction
248 $payment = PayModel::getPaymentById(21); 253 $payment = PayModel::getPaymentById(21);
249 $payService = PayFactory::factory($payment); 254 $payService = PayFactory::factory($payment);
250 $res = $payService->parseResponse(array('orderCode' => $orderCode)); 255 $res = $payService->parseResponse(array('orderCode' => $orderCode));
  256 + UdpLog::info("【微信扫码支付返回】,function:wechatqrcodereturnAction,参数", array('pars' => $_GET, 'res' => $res));
251 $dealResult = $this->payResultProc($res, 21); 257 $dealResult = $this->payResultProc($res, 21);
252 $dealResult['payData'] = array('payWay' => '微信扫码支付'); 258 $dealResult['payData'] = array('payWay' => '微信扫码支付');
253 } while (false); 259 } while (false);
@@ -95,7 +95,7 @@ class IndexController extends WebAction @@ -95,7 +95,7 @@ class IndexController extends WebAction
95 95
96 //调用模型获得品牌页数据 96 //调用模型获得品牌页数据
97 $data = BrandsModel::getBrandSearchData($condition, $options); 97 $data = BrandsModel::getBrandSearchData($condition, $options);
98 - 98 + $data['signboard'] = isset($result['signboard']) ? $result['signboard'] : '';//水牌
99 //统计前三个商品 99 //统计前三个商品
100 $skn=array(); 100 $skn=array();
101 $arr=array(); 101 $arr=array();
@@ -315,7 +315,6 @@ class IndexController extends WebAction @@ -315,7 +315,6 @@ class IndexController extends WebAction
315 */ 315 */
316 public function shopHome($shopId) 316 public function shopHome($shopId)
317 { 317 {
318 - $domain = $this->param('named');  
319 // 设置头部数据 318 // 设置头部数据
320 $this->setWebNavHeader(); 319 $this->setWebNavHeader();
321 $misort = $this->get('misort'); 320 $misort = $this->get('misort');
@@ -50,7 +50,7 @@ application.template.ext = ".phtml" @@ -50,7 +50,7 @@ application.template.ext = ".phtml"
50 application.assets.path = ROOT_PATH "/assets/web" 50 application.assets.path = ROOT_PATH "/assets/web"
51 51
52 ; 应用的版本号 52 ; 应用的版本号
53 -application.version = "0.0.26" 53 +application.version = "0.0.27"
54 54
55 ; 网站SEO信息 55 ; 网站SEO信息
56 application.seo.title = "YOHO!有货 | 年轻人潮流购物中心,中国潮流购物风向标,官方授权正品保证" 56 application.seo.title = "YOHO!有货 | 年轻人潮流购物中心,中国潮流购物风向标,官方授权正品保证"
@@ -50,7 +50,7 @@ application.template.ext = ".phtml" @@ -50,7 +50,7 @@ application.template.ext = ".phtml"
50 application.assets.path = ROOT_PATH "/assets/web" 50 application.assets.path = ROOT_PATH "/assets/web"
51 51
52 ; 应用的版本号 52 ; 应用的版本号
53 -application.version = "0.0.26" 53 +application.version = "0.0.27"
54 54
55 ; 网站SEO信息 55 ; 网站SEO信息
56 application.seo.title = "YOHO!有货 | 年轻人潮流购物中心,中国潮流购物风向标,官方授权正品保证" 56 application.seo.title = "YOHO!有货 | 年轻人潮流购物中心,中国潮流购物风向标,官方授权正品保证"
@@ -50,7 +50,7 @@ application.template.ext = ".phtml" @@ -50,7 +50,7 @@ application.template.ext = ".phtml"
50 application.assets.path = ROOT_PATH "/assets/web" 50 application.assets.path = ROOT_PATH "/assets/web"
51 51
52 ; 应用的版本号 52 ; 应用的版本号
53 -application.version = "0.0.26" 53 +application.version = "0.0.27"
54 54
55 ; 网站SEO信息 55 ; 网站SEO信息
56 application.seo.title = "YOHO!有货 | 年轻人潮流购物中心,中国潮流购物风向标,官方授权正品保证" 56 application.seo.title = "YOHO!有货 | 年轻人潮流购物中心,中国潮流购物风向标,官方授权正品保证"
@@ -50,7 +50,7 @@ application.template.ext = ".phtml" @@ -50,7 +50,7 @@ application.template.ext = ".phtml"
50 application.assets.path = ROOT_PATH "/assets/web" 50 application.assets.path = ROOT_PATH "/assets/web"
51 51
52 ; 应用的版本号 52 ; 应用的版本号
53 -application.version = "0.0.26" 53 +application.version = "0.0.27"
54 54
55 ; 网站SEO信息 55 ; 网站SEO信息
56 application.seo.title = "YOHO!有货 | 年轻人潮流购物中心,中国潮流购物风向标,官方授权正品保证" 56 application.seo.title = "YOHO!有货 | 年轻人潮流购物中心,中国潮流购物风向标,官方授权正品保证"