Base.php 466 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace app\api\controller\ue;
  3. use app\hander\HelpHander;
  4. use think\Controller;
  5. class Base extends Controller
  6. {
  7. protected $orgId;
  8. protected function initialize()
  9. {
  10. parent::initialize();
  11. // halt(think_encrypt(33));
  12. //MDAwMDAwMDAwMLCtrqM
  13. $this->orgId = think_decrypt(input('orgId/d','MDAwMDAwMDAwMLCtrqM','trim'));
  14. if($this->orgId <= 0){
  15. HelpHander::error("参数错误");
  16. }
  17. }
  18. }