249435196@qq.com 1 год назад
Родитель
Сommit
79170f0332
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      script/module/platform/ApiLogic.lua

+ 5 - 4
script/module/platform/ApiLogic.lua

@@ -46,13 +46,13 @@ function deliver(oJsonInput,ret)
 	if not (ret.account and ret.order and ret.type and ret.id and ret.cnt and ret.region) then
 		ret.result = 6
 		ret.err = "param empty"
-		return
+		return ret
 	end
 	
 	if DELIVER_CODE_HIS[oJsonInput.order] then
 		ret.result = 4
 		ret.err = "order double"
-		return
+		return ret
 	end
 	DELIVER_CODE_HIS[oJsonInput.order] = os.time()
 
@@ -66,12 +66,12 @@ function deliver(oJsonInput,ret)
 		if not humanDb then
 			ret.result = 2
 			ret.err = "account not exist"
-			return
+            return ret
 		end
 	end
 	
 	if not BuyLogic.checkBuy(human,ret) then
-		return
+        return ret
 	end
 	
 	oJsonInput.cmd = "deliver"
@@ -95,6 +95,7 @@ function deliver(oJsonInput,ret)
 	RoleDBLogic.saveRole(human.db)
 	ret.result = 1
 	Log.write(Log.LOGID_OSS_DELIVER, human.db._id, human.db.account, human.db.name, human.db.lv,oJsonInput.order,oJsonInput.money,oJsonInput.type,oJsonInput.id,oJsonInput.cnt,online and 1 or 0,oJsonInput.region)	
+    return ret
 end