This commit is contained in:
@@ -16,7 +16,7 @@ namespace rockfishCore.Controllers
|
||||
//### OUR ROUTE CALLED FROM ROCKFISH CLIENT ####
|
||||
[Produces("application/json")]
|
||||
[Route("api/order")]
|
||||
[Authorize]
|
||||
|
||||
public class OrderController : Controller
|
||||
{
|
||||
private readonly rockfishContext ct;
|
||||
@@ -45,10 +45,16 @@ namespace rockfishCore.Controllers
|
||||
// Now use username and password with whatever authentication process you want
|
||||
if (username == "Y24PYYDQSA1L12905N5MKU" && password == "MA8GMQK2PC3FDNT1RTR68R")
|
||||
{
|
||||
//put the notification into the db as freeform notification information
|
||||
//put the jobject notification into the db as json string freeform notification information
|
||||
//to be processed by other code later. i.e. just capture it as is cleanly and don't bother trying to do anything fancy here this should be tight and focused and side effect free
|
||||
|
||||
|
||||
//save it to the database
|
||||
var VendorNotification = new VendorNotification();
|
||||
VendorNotification.Vendor = "shareit";
|
||||
VendorNotification.Data = j.ToString();
|
||||
VendorNotification.Processed = false;
|
||||
await ct.VendorNotification.AddAsync(VendorNotification);
|
||||
await ct.SaveChangesAsync();
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +65,7 @@ namespace rockfishCore.Controllers
|
||||
System.Diagnostics.Debug.WriteLine($"order/shareit - Exception processing request: {ex.Message}");
|
||||
}
|
||||
|
||||
return NoContent();
|
||||
return Ok("ok");//shareit robot looks for an OK response to know if it should resend or not https://account.mycommerce.com/home/wiki/7479805
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user