ConstProc.php 656 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace loyalsoft;
  3. /**
  4. * Description of ConstProc
  5. * 常量数据处理流程
  6. * 负责向客户端提供基本的数据配置信息
  7. * 及服务端常量数据检索
  8. * @author gwang
  9. */
  10. class ConstProc {
  11. /**
  12. * 逻辑分发
  13. * 所有的Proc中必须有这样一个方法
  14. * @param type $req
  15. */
  16. public static function procMain($req) {
  17. return Resp::err(ErrCode::err_method_notimplement);
  18. }
  19. /**
  20. * 获取物品常量
  21. * @param string $itemID
  22. * @return GoodsItemModel
  23. */
  24. static public function getGoodsItemConst($itemID) {
  25. return GameConfig::item_getItem($itemID);
  26. }
  27. }