bug
This commit is contained in:
@@ -96,13 +96,13 @@ namespace Tnb.ProductionMgr
|
||||
if (cs01==true && !cs01Flag)
|
||||
{
|
||||
BasFactoryConfig config = await _repository.AsSugarClient().Queryable<BasFactoryConfig>().FirstAsync(x => x.enabled == 1 && x.key == FactoryConfigConst.DOMAIN);
|
||||
HttpUtils.RequestGet($"http://localhost:9232/api/production/time-work/empty-carry-out-stk-left");
|
||||
HttpUtils.RequestGet($"{config.value}/api/production/time-work/empty-carry-out-stk-left");
|
||||
}
|
||||
|
||||
if (cs03==true && !cs03Flag)
|
||||
{
|
||||
BasFactoryConfig config = await _repository.AsSugarClient().Queryable<BasFactoryConfig>().FirstAsync(x => x.enabled == 1 && x.key == FactoryConfigConst.DOMAIN);
|
||||
HttpUtils.RequestGet($"http://localhost:9232/api/production/time-work/empty-carry-out-stk-right");
|
||||
HttpUtils.RequestGet($"{config.value}/api/production/time-work/empty-carry-out-stk-right");
|
||||
}
|
||||
|
||||
return Task.CompletedTask;
|
||||
@@ -167,26 +167,24 @@ namespace Tnb.ProductionMgr
|
||||
}
|
||||
|
||||
var db = _repository.AsSugarClient();
|
||||
Dictionary<String, Object> postData = new Dictionary<string, object>();
|
||||
BasLocation startLocation = await db.Queryable<BasLocation>().Where(x=>x.location_code==startLocationCode).FirstAsync();
|
||||
CommonCreatePretaskInput postData = new CommonCreatePretaskInput();
|
||||
postData.startlocation_id = startLocation.id;
|
||||
// postData.endlocation_id =
|
||||
|
||||
|
||||
Dictionary<string, object> header = new()
|
||||
{
|
||||
["Authorization"] = App.HttpContext != null ? App.HttpContext.Request.Headers["Authorization"] : ""
|
||||
};
|
||||
BasFactoryConfig config = await db.Queryable<BasFactoryConfig>().FirstAsync(x => x.enabled == 1 && x.key == FactoryConfigConst.DOMAIN);
|
||||
string sendResult = HttpUtils.RequestPost($"{config.value}/api/visualdev/OnlineDev/{ModuleConsts.MODULE_WMSDELIVERYPDA_ID}", JsonConvert.SerializeObject(postData), header);
|
||||
|
||||
AuthResponse authResponse = JsonConvert.DeserializeObject<AuthResponse>(sendResult);
|
||||
if(authResponse.code == 200 && authResponse.data.ObjToBool())
|
||||
{
|
||||
Log.Information("【FixedPointDelivery】注塑定点配送成功");
|
||||
//_redisData.Set("DB100.132.0_flag", true, TimeSpan.FromMinutes(20));
|
||||
}
|
||||
else
|
||||
{
|
||||
Log.Information(sendResult);
|
||||
}
|
||||
// string sendResult = HttpUtils.RequestPost($"{config.value}/api/wms/ware-house/common-create-pretask", JsonConvert.SerializeObject(postData), header);
|
||||
//
|
||||
// AuthResponse authResponse = JsonConvert.DeserializeObject<AuthResponse>(sendResult);
|
||||
// if(authResponse.code == 200 && authResponse.data.ObjToBool())
|
||||
// {
|
||||
// Log.Information("【FixedPointDelivery】注塑定点配送成功");
|
||||
// //_redisData.Set("DB100.132.0_flag", true, TimeSpan.FromMinutes(20));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Log.Information(sendResult);
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user