Przeglądaj źródła

【修改】短信配置;

塔里木分支
dyy 3 miesięcy temu
rodzic
commit
0445347e82
3 zmienionych plików z 7 dodań i 6 usunięć
  1. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  2. +2
    -2
      Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.SendSms/AliyunSms.cs
  3. +3
    -3
      Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.SendSms/App.config

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Wyświetl plik

@@ -23,7 +23,8 @@
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\..\</SolutionDir>
<RestorePackages>true</RestorePackages>
<UseGlobalApplicationHostFile />
<Use64BitIISExpress>false</Use64BitIISExpress>
<Use64BitIISExpress>
</Use64BitIISExpress>
<SccProjectName>
</SccProjectName>
<SccLocalPath>


+ 2
- 2
Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.SendSms/AliyunSms.cs Wyświetl plik

@@ -71,10 +71,10 @@ namespace Quanjiang.DigitalScholl.SendSms
switch (st)
{
case SmsType.LoginBind:
result = ("SMS_468910589", JsonConvert.SerializeObject(new { code = randomNum }), randomNum);
result = ("SMS_302660641", JsonConvert.SerializeObject(new { code = randomNum }), randomNum);
break;
case SmsType.ForgetPassWord:
result = ("SMS_468910589", JsonConvert.SerializeObject(new { code = randomNum }), randomNum);
result = ("SMS_302660641", JsonConvert.SerializeObject(new { code = randomNum }), randomNum);
break;
default:
throw new ArgumentOutOfRangeException(nameof(st), st, null);


+ 3
- 3
Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.SendSms/App.config Wyświetl plik

@@ -4,10 +4,10 @@
<!--阿里云短信平台参数-->
<add key="product" value="Dysmsapi" />
<add key="domain" value="dysmsapi.aliyuncs.com" />
<add key="accessId" value="" />
<add key="accessSecret" value="" />
<add key="accessId" value="LTAI5tCfoGsYFyZA3XUnXtpE" />
<add key="accessSecret" value="fqAni5SM3xRDeSFmcQhBPriMMMd6mT" />
<add key="regionIdForPop" value="cn-hangzhou" />
<add key="SignName" value="" />
<add key="SignName" value="塔里木职业技术学院" />
<!--斑羚短信平台-->
<add key="sdkappid" value="140009369387" />
<add key="appkey" value="4d2743a4233e5d8625eefa31f876721b" />


Ładowanie…
Anuluj
Zapisz