Compare commits
No commits in common. "7be53ae8f65ef5c77baf29b754dd39856e09e1d3" and "1a62986a5d7b028ce2746ce62a241f815f0c8437" have entirely different histories.
7be53ae8f6
...
1a62986a5d
@ -59,11 +59,6 @@ func MediaRouter(r *gin.RouterGroup) {
|
|||||||
script.POST("delete", serviceCast.DeleteVideoScript)
|
script.POST("delete", serviceCast.DeleteVideoScript)
|
||||||
}
|
}
|
||||||
|
|
||||||
task := auth.Group("task")
|
|
||||||
{
|
|
||||||
task.POST("list", serviceCast.TaskList)
|
|
||||||
}
|
|
||||||
|
|
||||||
layout := auth.Group("layout")
|
layout := auth.Group("layout")
|
||||||
{
|
{
|
||||||
layout.POST("update", serviceCast.LayoutUpdate)
|
layout.POST("update", serviceCast.LayoutUpdate)
|
||||||
|
|||||||
@ -1,28 +0,0 @@
|
|||||||
package cast
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
"fmt"
|
|
||||||
"fonchain-fiee/api/cast"
|
|
||||||
"fonchain-fiee/pkg/model/login"
|
|
||||||
"fonchain-fiee/pkg/service"
|
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
|
||||||
)
|
|
||||||
|
|
||||||
func TaskList(ctx *gin.Context) {
|
|
||||||
var req *cast.ListTaskListReq
|
|
||||||
var err error
|
|
||||||
if err = ctx.ShouldBind(&req); err != nil {
|
|
||||||
service.Error(ctx, err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
loginInfo := login.GetUserInfoFromC(ctx)
|
|
||||||
req.OperatorID = fmt.Sprint(loginInfo.ID)
|
|
||||||
resp, err := service.CastProvider.ListTaskList(context.Background(), req)
|
|
||||||
if err != nil {
|
|
||||||
service.Error(ctx, err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
service.Success(ctx, resp)
|
|
||||||
}
|
|
||||||
@ -1087,7 +1087,7 @@ func ImportWorkBatch(ctx *gin.Context) {
|
|||||||
var subInfoResp *accountFiee.UserInfoResponse
|
var subInfoResp *accountFiee.UserInfoResponse
|
||||||
if config.AppConfig.System.AppMode == "dev" { //FIXME
|
if config.AppConfig.System.AppMode == "dev" { //FIXME
|
||||||
subInfoResp = &accountFiee.UserInfoResponse{
|
subInfoResp = &accountFiee.UserInfoResponse{
|
||||||
Id: 1245,
|
Id: 123456,
|
||||||
Name: "测试用户",
|
Name: "测试用户",
|
||||||
TelNum: "18288888888",
|
TelNum: "18288888888",
|
||||||
TelAreaCode: "86",
|
TelAreaCode: "86",
|
||||||
@ -1152,7 +1152,7 @@ func ImportWorkBatch(ctx *gin.Context) {
|
|||||||
if utils.CleanString(row[i]) != "" {
|
if utils.CleanString(row[i]) != "" {
|
||||||
ok, _err := check.SecurityFile(row[i])
|
ok, _err := check.SecurityFile(row[i])
|
||||||
if _err != nil {
|
if _err != nil {
|
||||||
temp.Remark = fmt.Sprintf("图片%d:%s", i-7, _err.Error())
|
temp.Remark = _err.Error()
|
||||||
req.ImageWorks = append(req.ImageWorks, temp)
|
req.ImageWorks = append(req.ImageWorks, temp)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user