Index.php 320 B

12345678910111213141516171819
  1. <?php
  2. namespace addons\invite\controller;
  3. use think\addons\Controller;
  4. use think\Cookie;
  5. class Index extends Controller
  6. {
  7. public function index()
  8. {
  9. $id = $this->request->param('id/d');
  10. if ($id) {
  11. Cookie::set("inviter", $id);
  12. }
  13. return $this->view->fetch();
  14. }
  15. }