fix: analysis data type err
CI / changes (push) Successful in 1m45s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 1s
CI / analysis (push) Successful in 47s
CI / bff (push) Successful in 30s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 1s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 1s
CI / message (push) Successful in 47s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 1s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 1s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / store (push) Successful in 0s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s
CI / ws (push) Successful in 0s
CI / changes (push) Successful in 1m45s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 1s
CI / analysis (push) Successful in 47s
CI / bff (push) Successful in 30s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 1s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 1s
CI / message (push) Successful in 47s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 1s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 1s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / store (push) Successful in 0s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s
CI / ws (push) Successful in 0s
This commit is contained in:
@@ -7,12 +7,13 @@
|
|||||||
package message
|
package message
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
||||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
unsafe "unsafe"
|
unsafe "unsafe"
|
||||||
|
|
||||||
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -41,8 +41,7 @@ func SaveTask(ts dao.TaskTimeStamp, userId int64, path *dao.HandleZipResource, c
|
|||||||
if coverPath != utils.StringEmpty {
|
if coverPath != utils.StringEmpty {
|
||||||
updateData["cover"] = coverPath
|
updateData["cover"] = coverPath
|
||||||
}
|
}
|
||||||
_, err := m.Edit(w, updateData)
|
return m.Session().Where("task_id = ?", ts.TaskId).Updates(updateData).Error
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func SaveSubTask(ts dao.TaskTimeStamp, path *dao.HandleZipResource) error {
|
func SaveSubTask(ts dao.TaskTimeStamp, path *dao.HandleZipResource) error {
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ func ProcessUpload(ctx context.Context, payload analysisoss.CallbackPayload) err
|
|||||||
ts := dao.TaskTimeStamp{
|
ts := dao.TaskTimeStamp{
|
||||||
TaskId: payload.TaskId,
|
TaskId: payload.TaskId,
|
||||||
SubTaskId: subTaskId,
|
SubTaskId: subTaskId,
|
||||||
ProcessStartTs: strconv.FormatInt(time.Now().UnixMilli(), 10),
|
ProcessStartTs: time.Now().UnixMilli(),
|
||||||
}
|
}
|
||||||
userId := sess.SkinUserId()
|
userId := sess.SkinUserId()
|
||||||
if userId < utils.NumberOne {
|
if userId < utils.NumberOne {
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ type ImageAnalysisSub struct {
|
|||||||
FilePath string `gorm:"column:file_path" json:"file_path"`
|
FilePath string `gorm:"column:file_path" json:"file_path"`
|
||||||
ImageDir string `gorm:"column:image_dir" json:"image_dir"`
|
ImageDir string `gorm:"column:image_dir" json:"image_dir"`
|
||||||
Scene string `gorm:"column:scene" json:"scene"`
|
Scene string `gorm:"column:scene" json:"scene"`
|
||||||
UploadStartTs string `gorm:"column:upload_start_ts" json:"upload_start_ts"`
|
UploadStartTs int64 `gorm:"column:upload_start_ts" json:"upload_start_ts"`
|
||||||
UploadEndTs string `gorm:"column:upload_end_ts" json:"upload_end_ts"`
|
UploadEndTs int64 `gorm:"column:upload_end_ts" json:"upload_end_ts"`
|
||||||
ProcessStartTs string `gorm:"column:process_start_ts" json:"process_start_ts"`
|
ProcessStartTs int64 `gorm:"column:process_start_ts" json:"process_start_ts"`
|
||||||
ProcessEndTs string `gorm:"column:process_end_ts" json:"process_end_ts"`
|
ProcessEndTs int64 `gorm:"column:process_end_ts" json:"process_end_ts"`
|
||||||
CreatedAt utils.CustomTime `gorm:"column:created_at" json:"created_at"`
|
CreatedAt utils.CustomTime `gorm:"column:created_at" json:"created_at"`
|
||||||
UpdatedAt utils.CustomTime `gorm:"column:updated_at" json:"updated_at"`
|
UpdatedAt utils.CustomTime `gorm:"column:updated_at" json:"updated_at"`
|
||||||
}
|
}
|
||||||
@@ -27,7 +27,7 @@ type HandleZipResource struct {
|
|||||||
type TaskTimeStamp struct {
|
type TaskTimeStamp struct {
|
||||||
TaskId string
|
TaskId string
|
||||||
SubTaskId string
|
SubTaskId string
|
||||||
UploadStartTs string
|
UploadStartTs int64
|
||||||
UploadEndTs string
|
UploadEndTs int64
|
||||||
ProcessStartTs string
|
ProcessStartTs int64
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user