Toggle navigation
Toggle navigation
This project
Loading...
Sign in
web
/
yoho-live
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
wuxiao
8 years ago
Commit
e01bc2907b3ea978c12366379fd4477987ae105e
1 parent
d57a7064
http://jira.yoho.cn:8888/browse/YH-5507
改成提示“红包ID已存在”
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
backend/models/RoomRedbag.php
backend/models/RoomRedbag.php
View file @
e01bc29
...
...
@@ -36,7 +36,7 @@ class RoomRedbag extends \yii\db\ActiveRecord
return
[
[[
'room_id'
,
'coupon_id'
,
'type_id'
,
'stock'
,
'effect_time'
,
'invalid_time'
,
'create_time'
,
'update_time'
],
'integer'
],
[[
'coupon_name'
],
'string'
,
'max'
=>
100
],
[[
'room_id'
,
'coupon_id'
],
'unique'
,
'targetAttribute'
=>
[
'room_id'
,
'coupon_id'
],
'
message'
=>
'The combination of 房间号 and 优惠券ID has already been taken.
'
],
[[
'room_id'
,
'coupon_id'
],
'unique'
,
'targetAttribute'
=>
[
'room_id'
,
'coupon_id'
],
'
comboNotUnique'
=>
'红包ID已存在
'
],
];
}
...
...
Please
register
or
login
to post a comment