Ver código fonte

feat():修改获取授权码的方式

geek 4 anos atrás
pai
commit
21e39fd03b
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      application/index/controller/User.php

+ 5 - 0
application/index/controller/User.php

@@ -22,6 +22,11 @@ class User extends BaseController {
         if (empty($channelId)){
             throw new ApiException('渠道id不为空');
         }
+        var_dump(input());
+        die();
+        if (empty(input('unionid'))){
+            throw new ApiException('unionid不为空');
+        }
         $params = [
             'id'     => $channelId,
             'userid' => input('unionid'),