|
@@ -94,7 +94,7 @@ func (p *ProductController) RelatePackage(productId int) {
|
|
|
func (p *ProductController) ProductSearch(productType, key string, isSignal bool) {
|
|
|
controllers.Wrap(&p.BaseController, func() (result *controllers.WrapData, err error) {
|
|
|
result = p.InitWrapData("搜索产品信息失败")
|
|
|
- userInfo := p.Data["user"].(user.User)
|
|
|
+
|
|
|
if !productMap[productType] {
|
|
|
err = exception.New(exception.ProductTypeError)
|
|
|
p.FailedResult("搜索产品信息失败", result)
|