|
@@ -78,7 +78,7 @@ func AgentGoodsCopy(c *gin.Context) { |
|
|
v.Stock = 0 |
|
|
v.Stock = 0 |
|
|
v.Uid = user.Info.Uid |
|
|
v.Uid = user.Info.Uid |
|
|
v.StoreType = 1 |
|
|
v.StoreType = 1 |
|
|
v.Cid = 0 |
|
|
|
|
|
|
|
|
v.Cid = utils.StrToInt(arg["cid"]) |
|
|
_, err := sess.Insert(&v) |
|
|
_, err := sess.Insert(&v) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
sess.Rollback() |
|
|
sess.Rollback() |
|
|