Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySu committed Nov 28, 2023
1 parent 83fd876 commit 7acf8ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,25 @@
/* 注意:TenpayApiV3Controller 为真正微信支付 API V3 的示例 */

//DPBMARK_FILE TenPay
using Microsoft.AspNetCore.Http;
using System.Collections.Concurrent;
using System.Text;
using Microsoft.AspNetCore.Mvc;
using Senparc.CO2NET.Extensions;
using Senparc.CO2NET.HttpUtility;
using Senparc.CO2NET.Utilities;
using Senparc.Weixin.Entities;
using Senparc.Weixin.Exceptions;
using Senparc.Weixin.Helpers;
using Senparc.Weixin.Sample.TenPayV3.Controllers;
using Senparc.Weixin.MP.AdvancedAPIs;
//DPBMARK MP
using Senparc.Weixin.Sample.TenPayV3.Filters;
using Senparc.Weixin.Sample.TenPayV3.Models;
using Senparc.Weixin.TenPayV3;
using Senparc.Weixin.Sample.TenPayV3.Utilities;
using Senparc.Weixin.TenPayV3.Apis;
using Senparc.Weixin.TenPayV3.Apis.BasePay;
using Senparc.Weixin.TenPayV3.Apis.BasePay.Entities;
using Senparc.Weixin.TenPayV3.Apis.Entities;
using Senparc.Weixin.TenPayV3.Entities;
using Senparc.Weixin.TenPayV3.Helpers;
using System;
using System.Collections.Concurrent;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

//DPBMARK MP
using Senparc.Weixin.MP;
using Senparc.Weixin.Sample.TenPayV3.Filters;
using Senparc.Weixin.MP.AdvancedAPIs;
using Senparc.CO2NET.HttpUtility;
using Senparc.Weixin.Sample.TenPayV3.Utilities;
using ZXing;
//DPBMARK_END

namespace Senparc.Weixin.Sample.TenPayV3.Controllers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public void GetIndustryTest()
public void AddtemplateTest()
{
var accessToken = AccessTokenContainer.GetAccessToken(_appId);
var result = TemplateApi.Addtemplate(accessToken, "OPENTM207498902");
var result = TemplateApi.AddTemplate(accessToken, "OPENTM207498902", null);
Assert.AreEqual(ReturnCode.请求成功, result.errcode);
Assert.IsNotNull(result.template_id);
Console.WriteLine(result.template_id);
Expand All @@ -246,7 +246,7 @@ public void DelPrivateTemplateTest()
//var accessToken = AccessTokenContainer.GetAccessToken(_appId);

//添加模板
var addResult = TemplateApi.Addtemplate(_appId, "OPENTM206164559");
var addResult = TemplateApi.AddTemplate(_appId, "OPENTM206164559", null);
var templateId = addResult.template_id;
Assert.IsNotNull(templateId);

Expand Down

0 comments on commit 7acf8ec

Please sign in to comment.