|
@@ -7,14 +7,14 @@ import ( |
|
|
|
|
|
|
|
|
func GetFbPayAssciationList(eg *xorm.Engine, storeId, subAppid string) *model.FbPayAssociationList { |
|
|
func GetFbPayAssciationList(eg *xorm.Engine, storeId, subAppid string) *model.FbPayAssociationList { |
|
|
var data model.FbPayAssociationList |
|
|
var data model.FbPayAssociationList |
|
|
get, err := eg.Where("store_id=? and sub_appid=? ", storeId, subAppid).Get(&data) |
|
|
|
|
|
|
|
|
get, err := eg.Where("merchant_id=? and sub_appid=? ", storeId, subAppid).Get(&data) |
|
|
if get == false || err != nil { |
|
|
if get == false || err != nil { |
|
|
return nil |
|
|
return nil |
|
|
} |
|
|
} |
|
|
return &data |
|
|
return &data |
|
|
} |
|
|
} |
|
|
func SetFbPayAssciation(eg *xorm.Engine, args map[string]string) { |
|
|
func SetFbPayAssciation(eg *xorm.Engine, args map[string]string) { |
|
|
list := GetFbPayAssciationList(eg, args["StoreId"], args["MerchantId"]) |
|
|
|
|
|
|
|
|
list := GetFbPayAssciationList(eg, args["MerchantId"], args["SubAppid"]) |
|
|
if list != nil { |
|
|
if list != nil { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|