- 修复GuessDataResourceVendor中的bug
This commit is contained in:
@@ -712,7 +712,7 @@ func GuessDataResourceVendor(resourceURL string) (vendorID int) {
|
||||
vendorID = -1
|
||||
for tmpVendorID, urlList := range resourceTypeMap {
|
||||
for _, v := range urlList {
|
||||
if strings.Index(resourceURL, "//"+v) >= 0 {
|
||||
if v != "" && strings.Index(resourceURL, "//"+v) >= 0 {
|
||||
vendorID = tmpVendorID
|
||||
break
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ type FoodRecipe struct {
|
||||
AuthorID string `orm:"size(48);column(author_id);index" json:"authorID"`
|
||||
|
||||
Description string `orm:"size(4096)" json:"description"`
|
||||
Img string `orm:"size(1024)" json:"img"`
|
||||
Img string `orm:"size(512)" json:"img"`
|
||||
TimeInMinute int `json:"timeInMinute"` // 大约时间(分钟)
|
||||
UpvoteCount int `json:"upvoteCount"`
|
||||
DownvoteCount int `json:"downvoteCount"`
|
||||
@@ -39,7 +39,7 @@ type FoodRecipeStep struct {
|
||||
|
||||
Name string `orm:"size(48)" json:"name"`
|
||||
Description string `orm:"size(4096)" json:"description"`
|
||||
Img string `orm:"size(1024)" json:"img"`
|
||||
Img string `orm:"size(512)" json:"img"`
|
||||
}
|
||||
|
||||
func (*FoodRecipeStep) TableUnique() [][]string {
|
||||
|
||||
Reference in New Issue
Block a user