bug修复
This commit is contained in:
parent
79fb56ba2b
commit
adea561589
10
.idea/AugmentWebviewStateStore.xml
Normal file
10
.idea/AugmentWebviewStateStore.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AugmentWebviewStateStore">
|
||||
<option name="stateMap">
|
||||
<map>
|
||||
<entry key="CHAT_STATE" value="eyJjdXJyZW50Q29udmVyc2F0aW9uSWQiOiJjYzYyMGYxYS02NmE1LTQ1NTYtODhlZS05N2ZjNDc3NDYxODgiLCJjb252ZXJzYXRpb25zIjp7ImNjNjIwZjFhLTY2YTUtNDU1Ni04OGVlLTk3ZmM0Nzc0NjE4OCI6eyJpZCI6ImNjNjIwZjFhLTY2YTUtNDU1Ni04OGVlLTk3ZmM0Nzc0NjE4OCIsImNyZWF0ZWRBdElzbyI6IjIwMjUtMDMtMjdUMDM6MTc6NDguMDgwWiIsImxhc3RJbnRlcmFjdGVkQXRJc28iOiIyMDI1LTAzLTI3VDAzOjE3OjQ4LjA4MFoiLCJjaGF0SGlzdG9yeSI6W10sImZlZWRiYWNrU3RhdGVzIjp7fSwidG9vbFVzZVN0YXRlcyI6e30sImRyYWZ0RXhjaGFuZ2UiOnsicmVxdWVzdF9tZXNzYWdlIjoiIiwicmljaF90ZXh0X2pzb25fcmVwciI6eyJ0eXBlIjoiZG9jIiwiY29udGVudCI6W3sidHlwZSI6InBhcmFncmFwaCJ9XX0sInN0YXR1cyI6ImRyYWZ0In0sInJlcXVlc3RJZHMiOltdLCJpc1Bpbm5lZCI6ZmFsc2UsImlzU2hhcmVhYmxlIjpmYWxzZSwiZXh0cmFEYXRhIjp7Imhhc0RpcnR5RWRpdHMiOmZhbHNlfX19LCJpc0NvbnRleHRQYW5lT3BlbiI6ZmFsc2UsImlzQWN0aW9uc1BhbmVPcGVuIjpmYWxzZSwiYWdlbnRFeGVjdXRpb25Nb2RlIjoibWFudWFsIn0=" />
|
||||
</map>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
@ -64,9 +64,9 @@ func GetBundleOrderRecordsByUserIdAndBundleUuid(userId int32, uuid string) (bund
|
||||
return
|
||||
}
|
||||
|
||||
func GetBundleOrderRecordsByCommonUid(commonUid string) (bundleOrderRecords *model.BundleOrderRecords, err error) {
|
||||
func GetBundleOrderRecordsByCommonUidAndUserId(commonUid string, userId int32) (bundleOrderRecords *model.BundleOrderRecords, err error) {
|
||||
|
||||
err = app.ModuleClients.BundleDB.Where("bundle_common_uid = ?", commonUid).First(&bundleOrderRecords).Error
|
||||
err = app.ModuleClients.BundleDB.Where("bundle_common_uid = ? AND customer_id = ?", commonUid, userId).First(&bundleOrderRecords).Error
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ func ValueAddBundleList(req *bundle.ValueAddBundleListRequest) (res *bundle.Valu
|
||||
return
|
||||
} else {
|
||||
var bundleOrderRecord *model.BundleOrderRecords
|
||||
bundleOrderRecord, err = dao.GetBundleOrderRecordsByCommonUid(bundleProfile.BundleCommonUid)
|
||||
bundleOrderRecord, err = dao.GetBundleOrderRecordsByCommonUidAndUserId(bundleProfile.BundleCommonUid, req.UserId)
|
||||
if err != nil {
|
||||
err = nil
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user