Pārlūkot izejas kodu

拉卡拉码牌绑定推送

lcl 8 mēneši atpakaļ
vecāks
revīzija
45ef60b06f

+ 8 - 1
AppStart/Helper/PosPushDataNewHelper.cs

@@ -34,7 +34,14 @@ namespace MySystem
                 {
                     dataContent.Add("user_id", mer.QueryCount); //创客ID
                 }
-                Push("bind", dataContent);
+                if(mer.ProductType == "51")
+                {
+                    Push("qr_bind", dataContent);
+                }
+                else
+                {
+                    Push("bind", dataContent);
+                }
             }
             catch (Exception ex)
             {

+ 1 - 0
AppStart/Helper/PosPushHelper.cs

@@ -32,6 +32,7 @@ namespace MySystem
             if(dataType == "trade") url = ConfigurationManager.AppSettings["JavaGatewayHost"].ToString() + "/v1/kxs/statServer/sp/trade";
             if(dataType == "deposit") url = ConfigurationManager.AppSettings["JavaGatewayHost"].ToString() + "/v1/kxs/statServer/sp/cash";
             if(dataType == "active") url = ConfigurationManager.AppSettings["JavaGatewayHost"].ToString() + "/v1/kxs/statServer/sp/extActData";
+            if(dataType == "qr_bind") url = ConfigurationManager.AppSettings["JavaGatewayHost"].ToString() + "v1/kxs/statServer/sp/saveHaoDaQrCodeMchInfo";
             Utils.WriteLog("url:" + url, "统一推送日志");
             string encryptContent = AesEncrypt(dataContent);
             encryptContent = Convert.ToBase64String(Encoding.UTF8.GetBytes(encryptContent));

+ 1 - 0
AppStart/Helper/SycnSpServer/SycnSpMerchantService.cs

@@ -85,6 +85,7 @@ namespace MySystem
                                         {
                                             Mer.MerMobile = merInfo.MerNewSnNo;
                                         }
+                                        if (Mer.ProductType == "30" && Mer.SeoTitle == "PAPER_CODE") Mer.ProductType = "51";
                                         PosPushDataNewHelper.Bind(Mer, rnd);
                                     }
                                 }