func.php 383 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: dell
  5. * Date: 2016/2/18
  6. * Time: 17:47
  7. */
  8. class func
  9. {
  10. // 生成验证码key
  11. public static function gen_auth_code_key($mobile)
  12. {
  13. return 'mobile_auth_code:' . $mobile;
  14. }
  15. // 生成token的key
  16. public static function gen_token_key($token)
  17. {
  18. return 'token:' . $token;
  19. }
  20. }