Commit e973181b by Joneq

修改为post传送

parent 81c05e67
Showing with 3 additions and 3 deletions
......@@ -45,7 +45,7 @@ func initRouter(e *bm.Engine) {
//获取订单信息
g.GET("/get_order_info/:order_id", getOrderInfo)
//提交明细信息
g.GET("/scan_order_detail/:order_id/:scan_str",getOrderDetailId)
g.POST("/scan_order_detail",getOrderDetailId)
//增加订单图片
g.POST("/add_order_image", addOrderImage)
//提交订单
......@@ -255,10 +255,10 @@ func submitOrder(c *bm.Context) {
//获取订单详情ID
func getOrderDetailId(c *bm.Context) {
ordersn,_ := c.Params.Get("order_id")
ordersn := c.Request.PostFormValue("order_id")
//example |knVJXfVxSYa1o0qjZwznaI4IhhY=|PUI202007220425|100|00160657
scan_str,_ := c.Params.Get("scan_str")
scan_str := c.Request.PostFormValue("scan_str")
//查询sql select id from (SELECT *,qty-scanqty show_zan FROM `lie_erp_order` where materialno = ? and ordersn = ? order by show_zan asc) abc where show_zan >= ?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment