|
@@ -16,8 +16,6 @@ namespace TianQue.Sdk;
|
|
|
|
|
|
public class TiqnQueService : IGuiderSystemService, IScopeDependency
|
|
|
{
|
|
|
- private readonly string appSecret = "c01eb299b9d784bf55681af4da86bab6ba428101";
|
|
|
- private readonly string appKey = "TAjYAYuA";
|
|
|
private readonly ILogger<TQHttpClient> _logger;
|
|
|
private readonly string _url = "http://10.0.188.11:6090/api/v1/test/accept/saveAcceptInfoApi";
|
|
|
|
|
@@ -26,26 +24,13 @@ public class TiqnQueService : IGuiderSystemService, IScopeDependency
|
|
|
_logger = logger;
|
|
|
}
|
|
|
|
|
|
- public async Task<string> PostAcceptInfo()
|
|
|
- {
|
|
|
-
|
|
|
- var bodyDic = new SortedDictionary<string, object>
|
|
|
- {
|
|
|
- { "p2", "p2"},
|
|
|
- { "p1", "p1"}
|
|
|
- };
|
|
|
-
|
|
|
-
|
|
|
- return "ok";
|
|
|
- }
|
|
|
-
|
|
|
public async Task<string> PostOrder(Order order, OrderSnapshot orderSnapshot, ThirdTokenDto tokenDto)
|
|
|
{
|
|
|
TQHttpClient httpClient;
|
|
|
#if DEBUG
|
|
|
- httpClient = new TQHttpClient(appSecret, appKey, "171.94.154.2", 22, "root" , "ZGbyy@2024!", _logger);
|
|
|
+ httpClient = new TQHttpClient(tokenDto.Secret, tokenDto.AppId, "171.94.154.2", 22, "root" , "ZGbyy@2024!", _logger);
|
|
|
#else
|
|
|
- httpClient = new TQHttpClient(appSecret, appKey, _logger);
|
|
|
+ httpClient = new TQHttpClient(tokenDto.Secret, tokenDto.AppId, _logger);
|
|
|
#endif
|
|
|
var acceptInfo = order.Adapt<AcceptInfo>();
|
|
|
acceptInfo.ReplyCode = order.No!; // 唯一标识
|