ActiveProc.php 756 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /*
  3. * To change this license header, choose License Headers in Project Properties.
  4. * To change this template file, choose Tools | Templates
  5. * and open the template in the editor.
  6. */
  7. namespace loyalsoft;
  8. /**
  9. * Description of ActiveProc
  10. *
  11. * @author c'y'zhao
  12. */
  13. class ActiveProc {
  14. /**
  15. * 逻辑分发
  16. * 所有的Proc中必须有这样一个方法
  17. * @param Req $req
  18. */
  19. public static function procMain($req) {
  20. switch ($req->cmd) {
  21. case CmdCode::cmd_active_sign: # 6101 签到
  22. return ActiveProc::sign();
  23. default:
  24. Err(ErrCode::cmd_err);
  25. }
  26. }
  27. public static function sign() {
  28. }
  29. }