shish 6 лет назад
Родитель
Сommit
9cf3c034fe
2 измененных файлов с 5 добавлено и 11 удалено
  1. 2 11
      app/open/controllers/WxController.php
  2. 3 0
      sql.txt

+ 2 - 11
app/open/controllers/WxController.php

@@ -149,23 +149,14 @@ class WxController extends PublicController
 					if ($merchant['merchantName'] == '花卉宝') {
 						$text = $this->replyTextContent("等您好久,终于等到您 /::)");
 					}
-					
-					if (isset($merchantExtend['giveCoupon']) && !empty($merchantExtend['giveCoupon'])) {//关注公众号,赠送代金劵
-						if (empty($user['hasSubscribe'])) {//没有关注过公众号
-							$giveCouponPrice = $merchantExtend['giveCouponPrice'];
-							$couponMeetPrice = $merchantExtend['couponMeetPrice'];
-							//xhCouponService::focusGiveCoupon($userId, $merchant, $merchantExtend);
-							//$text = $this->replyTextContent("等您好久,终于等到您~\n\n恭喜您,获得一张<a href='" . Yii::$app->params['frontUrl'] . "/center/coupon?account={$merchant['id']}'>代金劵</a>,注册会员更多福利哦,<a href='" . Yii::$app->params['frontUrl'] . "/center/right?account={$merchant['id']}'>详情</a>");
-						}
-					}
-					
+
 					//响应扫码的场景事件 shish 2019.9.5
 					if (strstr($EventKey, 'qrscene_')) {
 						Yii::info($EventKey);
 						$sceneId = str_replace('qrscene_', '', $EventKey);
 						WxSceneService::respondScanEvent($merchant, $user, (string)$sceneId);
 					}
-					
+
 					$pc = new \WXBizMsgCrypt($openToken, $encodingAesKey, $openAppId);
 					$encryptMsg = '';
 					$pc->encryptMsg($text, $timestamp, $nonce, $encryptMsg);//加密

+ 3 - 0
sql.txt

@@ -1,3 +1,6 @@
+2019.12.13 shish
+ALTER TABLE xhWxScene MODIFY `type` TINYINT(4) NOT NULL DEFAULT '0' COMMENT '场景类型 0刮刮卡 1邀请有礼领券';
+
 2019.12.12 shish 我的代理与申请试用
 DROP TABLE IF EXISTS `xhAgentLevel`;
 CREATE TABLE IF NOT EXISTS xhAgentLevel(