RoleUtils.php 615 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * RoleUtils.php UTF-8
  4. * 角色校验
  5. *
  6. * @date : 2018/4/27 21:24
  7. *
  8. * @license 这不是一个自由软件,未经授权不许任何使用和传播。
  9. * @author : wuyonghong <wyh@huosdk.com>
  10. * @version : HUOSDK 8.0
  11. */
  12. namespace huolib\utils;
  13. use huolib\status\OrderStatus;
  14. class RoleUtils {
  15. /**
  16. * 校验SDK订单
  17. *
  18. * @param array $role_data
  19. *
  20. * @return int
  21. */
  22. public static function checkRole($role_data = []) {
  23. if (empty($role_data)) {
  24. return OrderStatus::INVALID_PARAMS;
  25. }
  26. return OrderStatus::NO_ERROR;
  27. }
  28. }