1
This commit is contained in:
parent
910fbcffec
commit
a6b67282f3
@ -14,7 +14,8 @@ class Emoji(object):
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.Emoji()], '表情列表']
|
||||
['!data', [_common.Emoji()], '表情列表'],
|
||||
['!use_emoji', [], '已选择的表情列表'],
|
||||
]
|
||||
},{
|
||||
'name': 'setEmoji',
|
||||
|
@ -95,3 +95,4 @@ const kWantedLockType = 3;
|
||||
|
||||
const kMaxHeroUpLevelNum = 2;
|
||||
const kMaxHeroUpQualityNum = 2;
|
||||
const kMaxEmojiNum = 6;
|
||||
|
@ -26,7 +26,8 @@ class EmojiController extends BaseAuthedController
|
||||
}
|
||||
}
|
||||
$this->_rspData(array(
|
||||
'data' => $data
|
||||
'data' => $data,
|
||||
'use_emoji' => $uses
|
||||
));
|
||||
}
|
||||
|
||||
@ -41,7 +42,7 @@ class EmojiController extends BaseAuthedController
|
||||
$this->_rspErr(1, 'The emoji has been used');
|
||||
return;
|
||||
}
|
||||
if(count($uses) >= 6){
|
||||
if(count($uses) >= kMaxEmojiNum){
|
||||
$this->_rspErr(1, 'To maximize');
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user