123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace huolib\utils;
- use huolib\constant\GameConst;
- use huolib\constant\NewsConst;
- use huolib\status\NewsStatus;
- class NewsUtils {
-
- public static function checkNewsType($post_type = 0) {
- if (empty($post_type)) {
- return NewsStatus::NO_ERROR;
- }
- $_rs = NewsConst::getNewsMsg($post_type);
- if (false == $_rs) {
- return NewsStatus::NEWS_TYPE_ERROR;
- }
- return NewsStatus::NO_ERROR;
- }
- }
|