SiteSignupService.php 518 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace common\service;
  3. /*
  4. * 网站报名
  5. */
  6. use common\api\EnrollServer;
  7. use frontend\base\Help;
  8. use yii\db\Exception;
  9. class SiteSignupService
  10. {
  11. public $type = 1;
  12. /*
  13. * 国内项目报名
  14. */
  15. public function ChinaSign($data,$terminalType,$type = 1)
  16. {
  17. $en = new EnrollServer();
  18. $cacheResult = $en->Restrict();
  19. if($cacheResult === false) throw new Exception('您今天的报名次数已超过限制');
  20. }
  21. }