zhaojs
2023-10-20 539dd16c7ee4da6c4b9d4f953b91f1360bb4a7b4
no message
已添加2个文件
已修改6个文件
56 ■■■■■ 文件已修改
api/.vs/FxProject/v16/.suo 补丁 | 查看 | 原始文档 | blame | 历史
api/Api.Operater/Api.Operater.csproj.user 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/Api.Operater/Controllers/sms/WxBackController.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/Api.Operater/Properties/PublishProfiles/FolderProfile2.pubxml 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/Api.Operater/Properties/PublishProfiles/FolderProfile2.pubxml.user 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/Api.Operater/appsettings.json 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/CommonUtil/Web/SendQwGroup.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/ScheduledTasks/appsettings.json 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/.vs/FxProject/v16/.suo
Binary files differ
api/Api.Operater/Api.Operater.csproj.user
@@ -3,6 +3,6 @@
  <PropertyGroup>
    <Controller_SelectedScaffolderID>MvcControllerEmptyScaffolder</Controller_SelectedScaffolderID>
    <Controller_SelectedScaffolderCategoryPath>root/Common/MVC/Controller</Controller_SelectedScaffolderCategoryPath>
    <NameOfLastUsedPublishProfile>E:\OPProject\operateApi\Api.Operater\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
    <NameOfLastUsedPublishProfile>E:\OPProject\短信项目\api\Api.Operater\Properties\PublishProfiles\FolderProfile2.pubxml</NameOfLastUsedPublishProfile>
  </PropertyGroup>
</Project>
api/Api.Operater/Controllers/sms/WxBackController.cs
@@ -158,6 +158,17 @@
                    new WxpayTradeDAL().Update(preTrade, null, null);
                    //充值处理
                    PayUserInfo(notify, preTrade);
                    //发送提醒
                    try
                    {
                        string warStr = "充值提醒\n>类型:短信充值\n>短信数量:" + preTrade.SmsCount + "\n>充值金额:" + Math.Round((decimal)preTrade.Amount / 100, 2);
                        SendQwGroup.SendMessage(warStr);
                    }
                    catch
                    {
                    }
                    return WeChatPayNotifyResult.Success;
                }
                return WeChatPayNotifyResult.Failure;
api/Api.Operater/Properties/PublishProfiles/FolderProfile2.pubxml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <DeleteExistingFiles>True</DeleteExistingFiles>
    <ExcludeApp_Data>False</ExcludeApp_Data>
    <LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
    <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
    <LastUsedPlatform>Any CPU</LastUsedPlatform>
    <PublishProvider>FileSystem</PublishProvider>
    <PublishUrl>bin\Release\netcoreapp3.1\publish\</PublishUrl>
    <WebPublishMethod>FileSystem</WebPublishMethod>
    <SiteUrlToLaunchAfterPublish />
    <TargetFramework>netcoreapp3.1</TargetFramework>
    <ProjectGuid>9c5e2acc-af32-4e82-bc9b-583db5826a90</ProjectGuid>
    <SelfContained>false</SelfContained>
  </PropertyGroup>
</Project>
api/Api.Operater/Properties/PublishProfiles/FolderProfile2.pubxml.user
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <_PublishTargetUrl>E:\OPProject\短信项目\api\Api.Operater\bin\Release\netcoreapp3.1\publish\</_PublishTargetUrl>
    <History>True|2023-10-20T06:26:34.7297111Z;</History>
  </PropertyGroup>
</Project>
api/Api.Operater/appsettings.json
@@ -60,6 +60,8 @@
    // ç›®å‰ä»…调用"企业付款到银行卡API [V2]"时使用,执行本示例中的"获取RSA加密公钥API [V2]"即可获取。
    "RsaPublicKey": ""
  },
  //企微webhook
  "qw_webhook": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1e5a8b47-b108-40a6-9a29-d629863bd066",
  "DbConnection": [
    {
      ////测试
api/CommonUtil/Web/SendQwGroup.cs
@@ -16,11 +16,16 @@
        {
            try
            {
                string webhook = ConfigUtil.GetValue<string>("qw_webhook");
                if(webhook.IsNullOrEmpty())
                {
                    return;
                }
                string body = "{\"msgtype\": \"markdown\",\"markdown\":{\"content\":\"" + message + "\"}}";
                string res = new WebUtil().DoPostWithJson("https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1e5a8b47-b108-40a6-9a29-d629863bd066", body, null);
                string res = new WebUtil().DoPostWithJson(webhook, body, null);
                body = "{\"msgtype\": \"text\",\"text\":{\"content\":\"您有新的消息需要处理\",\"mentioned_mobile_list\":[\"13382447768\",\"15862977578\",\"17315773080\"]}}";
                res = new WebUtil().DoPostWithJson("https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1e5a8b47-b108-40a6-9a29-d629863bd066", body, null);
                res = new WebUtil().DoPostWithJson(webhook, body, null);
            }
            catch
            {
api/ScheduledTasks/appsettings.json
@@ -7,6 +7,8 @@
    }
  },
  "AllowedHosts": "*",
  //企微webhook
  "qw_webhook": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1e5a8b47-b108-40a6-9a29-d629863bd066",
  //短信系统预警 æ¯éš”5分钟触发一次
  "job_smswarning": "0 0/5 * * * ?",
  "DbConnection": [