Forráskód Böngészése

update bỏ otp mặc định
thêm hướng dẫn chơi game trong guile

student 1 hónapja
szülő
commit
de077860bc

+ 6 - 6
Kitty_Fall/Kitty_Fall/Kitty_Fall.Apis/Business/User/UserBusinessImpl.cs

@@ -918,8 +918,8 @@ namespace Kitty_Fall.Apis.Business.User
                     {
                         Id = (decimal)(await DbLogic.GenIdAsync(dbContext, "TRANSACTION_ACTIVE_SEQ") ?? 0),
                         Msisdn = msisdn,
-                        //Otp = mOtp,
-                        Otp = "111111",
+                        Otp = mOtp,
+                        //Otp = "111111",
                         TimeLeft = 5,
                         CreatedTime = MyanmarClock.Now,
                         ValidTime = MyanmarClock.Now.AddMinutes(5),
@@ -941,8 +941,8 @@ namespace Kitty_Fall.Apis.Business.User
                         );
                     }
 
-                    //otpSender.Otp = mOtp;
-                    otpSender.Otp = "111111";
+                    otpSender.Otp = mOtp;
+                    //otpSender.Otp = "111111";
                     otpSender.TransactionId = transCode;
                     otpSender.TimeLeft = otpSender.TimeLeft <= 0 ? 5 : otpSender.TimeLeft - 1;
                     otpSender.CreatedTime = MyanmarClock.Now;
@@ -955,7 +955,7 @@ namespace Kitty_Fall.Apis.Business.User
 
                 await dbContext.SaveChangesAsync();
                 var messOTp = @Lang.messOtp.Replace("%OTP%", mOtp);
-                //await CommonLogic.SendMtToUserAsync(dbContext, msisdn, messOTp);
+                await CommonLogic.SendMtToUserAsync(dbContext, msisdn, messOTp);
                 return CommonLogic.BuildResponse(
                     url,
                     json,
@@ -1078,7 +1078,7 @@ namespace Kitty_Fall.Apis.Business.User
                     transactionId = (isTrans == true ? otpSender.TransactionId :"")
                 };
                 var messOTp = @Lang.messOtp.Replace("%OTP%", mOtp);
-                //await CommonLogic.SendMtToUserAsync(dbContext, msisdn, messOTp);
+                await CommonLogic.SendMtToUserAsync(dbContext, msisdn, messOTp);
 
                 return CommonLogic.BuildResponse(
                     url,

+ 9 - 0
Kitty_Fall/Kitty_Fall/Kitty_Fall.Apis/appsettings.json

@@ -10,6 +10,15 @@
   "wsUser": "ws_KittyFall",
   "wsPass": "KittyFall@123A",
   "REVENUE_MIN": "200000",
+
+  "DefaultOtp": {
+    "Code": "111111",
+    "Msisdns": [
+      "959693302889",
+      "959670381693"
+    ]
+  },
+
   "Logging": {
     "LogLevel": {
       "Default": "Information",

+ 1 - 0
Kitty_Fall/Kitty_Fall/Kitty_Fall.Website/Language/Lang.resx

@@ -765,4 +765,5 @@
   <data name="GuideWarningsFraud" xml:space="preserve"><value>Warnings &amp; Fraud</value></data>
   <data name="GuideFraudWarning" xml:space="preserve"><value>Any fraudulent activity or use of abnormal methods to gain points will result in account locking and disqualification from the leaderboard and rewards.</value></data>
   <data name="GuideThreeWinnersRandomlySelected" xml:space="preserve"><value>Three winners will be randomly selected from the players who have tickets during that month.</value></data>
+  <data name="GuideHowToPlayIntro" xml:space="preserve"><value>How to Play: Follow the steps below to access the game and start playing.</value></data>
 </root>

+ 2 - 1
Kitty_Fall/Kitty_Fall/Kitty_Fall.Website/Language/Lang.vi.resx

@@ -807,4 +807,5 @@
   <data name="GuideThreeWinnersRandomlySelected" xml:space="preserve">
     <value>ထိုလအတွင်း မဲလက်မှတ် ရရှိထားသော ကစားသူများထဲမှ ကံထူးရှင် ၃ ဦးကို မဲနှိုက်ရွေးချယ်သွားမည် ဖြစ်ပါသည်။</value>
   </data>
-</root>
+  <data name="GuideHowToPlayIntro" xml:space="preserve"><value>ကစားနည်း- ဂိမ်းကိုဝင်ရောက်ပြီး ကစားရန်အောက်ပါအဆင့်များကို လိုက်နာပါ။</value></data>
+</root>

+ 12 - 0
Kitty_Fall/Kitty_Fall/Kitty_Fall.Website/Views/Guide/Index.cshtml

@@ -33,6 +33,18 @@
                 <h1>@Html.Raw(Lang.GuideTitle)</h1>
                 <img class="guide-logo" src="~/kitty/assets/kitty-fall/logo.png" alt="Kittyfall">
 
+                <section class="guide-section guide-how-to-play">
+                    <h2>@GuideText("GuideHowToPlayIntro")</h2>
+                    <div class="guide-step-list">
+                        @for (var step = 1; step <= 4; step++)
+                        {
+                            <img src="~/kitty/assets/kitty-fall/step/step@(step).jpg"
+                                 alt="How to play - step @step"
+                                 loading="lazy">
+                        }
+                    </div>
+                </section>
+
                 <section class="guide-section">
                     <h2><b>I.</b><span>@Lang.GuideServiceIntroduction</span></h2>
                     <p>@Lang.GuideIntroP1</p>

BIN
Kitty_Fall/Kitty_Fall/Kitty_Fall.Website/wwwroot/kitty/assets/kitty-fall/step/step1.jpg


BIN
Kitty_Fall/Kitty_Fall/Kitty_Fall.Website/wwwroot/kitty/assets/kitty-fall/step/step2.jpg


BIN
Kitty_Fall/Kitty_Fall/Kitty_Fall.Website/wwwroot/kitty/assets/kitty-fall/step/step3.jpg


BIN
Kitty_Fall/Kitty_Fall/Kitty_Fall.Website/wwwroot/kitty/assets/kitty-fall/step/step4.jpg


+ 18 - 0
Kitty_Fall/Kitty_Fall/Kitty_Fall.Website/wwwroot/kitty/css/all.min.css

@@ -2170,6 +2170,24 @@ button {
     margin-top: 16px;
 }
 
+.guide-how-to-play {
+    margin-top: 20px;
+}
+
+.guide-step-list {
+    display: grid;
+    gap: 12px;
+}
+
+.guide-step-list img {
+    display: block;
+    width: 70%;
+    height: auto;
+    margin: 0 auto;
+    border-radius: 10px;
+    object-fit: contain;
+}
+
 .guide-section h2 {
     margin: 0 0 12px;
     display: flex;

+ 18 - 0
Kitty_Fall/Kitty_Fall/Kitty_Fall.Website/wwwroot/kitty/css/input.css

@@ -2170,6 +2170,24 @@ button {
     margin-top: 16px;
 }
 
+.guide-how-to-play {
+    margin-top: 20px;
+}
+
+.guide-step-list {
+    display: grid;
+    gap: 12px;
+}
+
+.guide-step-list img {
+    display: block;
+    width: 70%;
+    height: auto;
+    margin: 0 auto;
+    border-radius: 10px;
+    object-fit: contain;
+}
+
 .guide-section h2 {
     margin: 0 0 12px;
     display: flex;