pengchanglu 3 years ago
parent
commit
06d610ff0a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      application/index/controller/Index.php

+ 3 - 0
application/index/controller/Index.php

@@ -8,6 +8,8 @@ use app\common\model\pig\Company;
 use app\common\model\pig\Order;
 use think\Cache;
 
+//use think\Cookie;
+
 class Index extends Frontend
 {
 
@@ -24,6 +26,7 @@ class Index extends Frontend
     public function code()
     {
         //echo encrypt(str_pad(2, 6, '0', STR_PAD_LEFT));exit;
+        //用cookies  做核验校验
         $code = $this->request->request('code');
         if (!$code) {
             $this->error("CODE为空,非法访问!");