123456789101112131415161718192021222324252627282930313233 |
- <?php
- /**
- * RoleUtils.php UTF-8
- * 角色校验
- *
- * @date : 2018/4/27 21:24
- *
- * @license 这不是一个自由软件,未经授权不许任何使用和传播。
- * @author : wuyonghong <wyh@huosdk.com>
- * @version : HUOSDK 8.0
- */
- namespace huolib\utils;
- use huolib\status\OrderStatus;
- class RoleUtils {
- /**
- * 校验SDK订单
- *
- * @param array $role_data
- *
- * @return int
- */
- public static function checkRole($role_data = []) {
- if (empty($role_data)) {
- return OrderStatus::INVALID_PARAMS;
- }
- return OrderStatus::NO_ERROR;
- }
- }
|