Browse Source

err return

ziwen 2 years ago
parent
commit
bf7c46ab37
1 changed files with 1 additions and 0 deletions
  1. 1 0
      controller/pc/pc.go

+ 1 - 0
controller/pc/pc.go

@@ -215,6 +215,7 @@ func GetSunCode(c *gin.Context) {
 	if sunCodeUrl == ""{
 		sunCodeUrl, err = services.PcCreateAndUploadSunCode(req.CodeScene, req.CodePage)
 		if err != nil {
+			response.Fail(err.Error(), c)
 			return
 		}
 	}