LanZouDown
    LanZouDown
    • 获取邮箱验证码
      GET
    • 用户注册
      GET
    • 用户登录
      GET
    • 获取已登录用户信息
      GET
    • 获取找回密码验证码
      GET
    • 找回密码
      GET
    • 用户签到
      GET
    • 修改资料
      GET
    • 上传头像
      POST
    • 修改密码
      POST
    • 生成邀请码
      GET
    • 填写邀请码
      GET
    • 邀请排行榜
      GET
    • 获取软件分类
      GET
    • 获取软件分类列表
      GET
    • 定时更新TK接口(宝塔定时任务,两分钟执行一次)
      GET
    • 获取应用更新
      GET
    • 增加应用访问量
      GET
    • 使用卡密
      GET
    • 获取在线支付商品(积分、会员)
      GET
    • 获取积分兑换商城列表
      GET
    • 获取商品信息(在线支付和积分兑换皆可)
      GET
    • 积分兑换
      GET
    • 积分事件、会员事件
      GET
    • 商品在线易支付
      GET
    • 支付宝APP支付(官方)
      GET
    • 异步通知
      GET
    • 支付订单
      GET
    • 获取已支付订单弹幕
      GET
    • 获取积分订单弹幕
      GET
    • 获取用户积分记录
      GET
    • 获取广告
      GET
    • 获取应用信息
      GET

      商品在线易支付

      开发中
      GET
      http://lanzou.freeapks.cn/v1/Pays

      请求参数

      Query 参数
      shopid
      string 
      必需
      示例值:
      19
      username
      string 
      必需
      示例值:
      123456
      usertoken
      string 
      必需
      示例值:
      25b2f5996f4fe402d1c0846cfc25e84d
      out_trade_no
      string 
      必需
      示例值:
      12121212121212
      paytype
      string 
      必需
      示例值:
      alipay

      示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'http://lanzou.freeapks.cn/v1/Pays?shopid=19&username=123456&usertoken=25b2f5996f4fe402d1c0846cfc25e84d&out_trade_no=12121212121212&paytype=alipay'

      返回响应

      🔴500成功
      application/json
      Body
      object {0}
      示例
      <!DOCTYPE html>
      <html>
      <head>
          <meta charset="UTF-8">
          <title>系统发生错误</title>
          <meta name="robots" content="noindex,nofollow" />
          <style>
              /* Base */
              body {
                  color: #333;
                  font: 16px Verdana, "Helvetica Neue", helvetica, Arial, 'Microsoft YaHei', sans-serif;
                  margin: 0;
                  padding: 0 20px 20px;
              }
              h1{
                  margin: 10px 0 0;
                  font-size: 28px;
                  font-weight: 500;
                  line-height: 32px;
              }
              h2{
                  color: #4288ce;
                  font-weight: 400;
                  padding: 6px 0;
                  margin: 6px 0 0;
                  font-size: 18px;
                  border-bottom: 1px solid #eee;
              }
              h3{
                  margin: 12px;
                  font-size: 16px;
                  font-weight: bold;
              }
              abbr{
                  cursor: help;
                  text-decoration: underline;
                  text-decoration-style: dotted;
              }
              a{
                  color: #868686;
                  cursor: pointer;
              }
              a:hover{
                  text-decoration: underline;
              }
              .line-error{
                  background: #f8cbcb;
              }
      
              .echo table {
                  width: 100%;
              }
      
              .echo pre {
                  padding: 16px;
                  overflow: auto;
                  font-size: 85%;
                  line-height: 1.45;
                  background-color: #f7f7f7;
                  border: 0;
                  border-radius: 3px;
                  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
              }
      
              .echo pre > pre {
                  padding: 0;
                  margin: 0;
              }
          
              /* Exception Info */
              .exception {
                  margin-top: 20px;
              }
              .exception .message{
                  padding: 12px;
                  border: 1px solid #ddd;
                  border-bottom: 0 none;
                  line-height: 18px;
                  font-size:16px;
                  border-top-left-radius: 4px;
                  border-top-right-radius: 4px;
                  font-family: Consolas,"Liberation Mono",Courier,Verdana,"微软雅黑";
              }
      
              .exception .code{
                  float: left;
                  text-align: center;
                  color: #fff;
                  margin-right: 12px;
                  padding: 16px;
                  border-radius: 4px;
                  background: #999;
              }
              .exception .source-code{
                  padding: 6px;
                  border: 1px solid #ddd;
      
                  background: #f9f9f9;
                  overflow-x: auto;
      
              }
              .exception .source-code pre{
                  margin: 0;
              }
              .exception .source-code pre ol{
                  margin: 0;
                  color: #4288ce;
                  display: inline-block;
                  min-width: 100%;
                  box-sizing: border-box;
              font-size:14px;
                  font-family: "Century Gothic",Consolas,"Liberation Mono",Courier,Verdana;
                  padding-left: 56px;
              }
              .exception .source-code pre li{
                  border-left: 1px solid #ddd;
                  height: 18px;
                  line-height: 18px;
              }
              .exception .source-code pre code{
                  color: #333;
                  height: 100%;
                  display: inline-block;
                  border-left: 1px solid #fff;
              font-size:14px;
                  font-family: Consolas,"Liberation Mono",Courier,Verdana,"微软雅黑";
              }
              .exception .trace{
                  padding: 6px;
                  border: 1px solid #ddd;
                  border-top: 0 none;
                  line-height: 16px;
              font-size:14px;
                  font-family: Consolas,"Liberation Mono",Courier,Verdana,"微软雅黑";
              }
              .exception .trace ol{
                  margin: 12px;
              }
              .exception .trace ol li{
                  padding: 2px 4px;
              }
              .exception div:last-child{
                  border-bottom-left-radius: 4px;
                  border-bottom-right-radius: 4px;
              }
      
              /* Exception Variables */
              .exception-var table{
                  width: 100%;
                  margin: 12px 0;
                  box-sizing: border-box;
                  table-layout:fixed;
                  word-wrap:break-word;            
              }
              .exception-var table caption{
                  text-align: left;
                  font-size: 16px;
                  font-weight: bold;
                  padding: 6px 0;
              }
              .exception-var table caption small{
                  font-weight: 300;
                  display: inline-block;
                  margin-left: 10px;
                  color: #ccc;
              }
              .exception-var table tbody{
                  font-size: 13px;
                  font-family: Consolas,"Liberation Mono",Courier,"微软雅黑";
              }
              .exception-var table td{
                  padding: 0 6px;
                  vertical-align: top;
                  word-break: break-all;
              }
              .exception-var table td:first-child{
                  width: 28%;
                  font-weight: bold;
                  white-space: nowrap;
              }
              .exception-var table td pre{
                  margin: 0;
              }
      
              /* Copyright Info */
              .copyright{
                  margin-top: 24px;
                  padding: 12px 0;
                  border-top: 1px solid #eee;
              }
      
              /* SPAN elements with the classes below are added by prettyprint. */
              pre.prettyprint .pln { color: #000 }  /* plain text */
              pre.prettyprint .str { color: #080 }  /* string content */
              pre.prettyprint .kwd { color: #008 }  /* a keyword */
              pre.prettyprint .com { color: #800 }  /* a comment */
              pre.prettyprint .typ { color: #606 }  /* a type name */
              pre.prettyprint .lit { color: #066 }  /* a literal value */
              /* punctuation, lisp open bracket, lisp close bracket */
              pre.prettyprint .pun, pre.prettyprint .opn, pre.prettyprint .clo { color: #660 }
              pre.prettyprint .tag { color: #008 }  /* a markup tag name */
              pre.prettyprint .atn { color: #606 }  /* a markup attribute name */
              pre.prettyprint .atv { color: #080 }  /* a markup attribute value */
              pre.prettyprint .dec, pre.prettyprint .var { color: #606 }  /* a declaration; a variable name */
              pre.prettyprint .fun { color: red }  /* a function name */
          </style>
      </head>
      <body>
          <div class="echo">
                  </div>
              <div class="exception">
          <div class="message">
              
                  <div class="info">
                      <div>
                          <h2>[8]&nbsp;<abbr title="think\exception\ErrorException">ErrorException</abbr> in <a class="toggle" title="/www/wwwroot/lanzou.freeapks.cn/application/v1/controller/Pay.php line 128">Pay.php line 128</a></h2>
                      </div>
                      <div><h1>未定义数组索引: appid</h1></div>
                  </div>
              
          </div>
      	        <div class="source-code">
                  <pre class="prettyprint lang-php"><ol start="119"><li class="line-119"><code>        if ($user['user_token'] != $data['usertoken']) {
      </code></li><li class="line-120"><code>            return $this-&gt;returnError('用户token错误');
      </code></li><li class="line-121"><code>        }
      </code></li><li class="line-122"><code>        $shoptrade = Shoporder::where('out_trade_no', $data['out_trade_no'])-&gt;find();
      </code></li><li class="line-123"><code>        if ($shoptrade) {
      </code></li><li class="line-124"><code>            return $this-&gt;returnError('订单已存在');
      </code></li><li class="line-125"><code>        }
      </code></li><li class="line-126"><code>        $order['out_trade_no'] = $data['out_trade_no'];
      </code></li><li class="line-127"><code>        $order['shopname'] = $data['shopname'];
      </code></li><li class="line-128"><code>        $order['appid'] = $data['appid'];
      </code></li><li class="line-129"><code>        $order['username'] = $data['username'];
      </code></li><li class="line-130"><code>        $order['creat_time'] = date(&quot;Y-m-d H:i:s&quot;, time());
      </code></li><li class="line-131"><code>        $order['shoptype'] = $shop['shoptype'];
      </code></li><li class="line-132"><code>        $order['type'] = $data['paytype'];
      </code></li><li class="line-133"><code>        $relus = Shoporder::create($order);
      </code></li><li class="line-134"><code>        
      </code></li><li class="line-135"><code>        if($relus){
      </code></li><li class="line-136"><code>            $o_info = 'money='.$shop['money'].'&amp;name='.$data['shopname'].'&amp;notify_url='.$app['paynotify'].'&amp;out_trade_no='.$data['out_trade_no'].'&amp;pid='.$app['payid'].'&amp;return_url='.$app['payapi'].'&amp;sitename='.$app['appname'].'&amp;type='.$data['paytype'];
      </code></li><li class="line-137"><code>                    $datas = $o_info . $app['paykey'];
      </code></li></ol></pre>
              </div>
      	        <div class="trace">
                  <h2>Call Stack</h2>
                  <ol>
                      <li>in <a class="toggle" title="/www/wwwroot/lanzou.freeapks.cn/application/v1/controller/Pay.php line 128">Pay.php line 128</a></li>
                                      <li>
                      at <abbr title="think\Error">Error</abbr>::appError() in <a class="toggle" title="/www/wwwroot/lanzou.freeapks.cn/application/v1/controller/Pay.php line 128">Pay.php line 128</a>                </li>
                                      <li>
                      at <abbr title="app\v1\controller\Pay">Pay</abbr>->Pays()                </li>
                                      <li>
                      at <abbr title="ReflectionMethod">ReflectionMethod</abbr>->invokeArgs() in <a class="toggle" title="/www/wwwroot/lanzou.freeapks.cn/thinkphp/library/think/Container.php line 395">Container.php line 395</a>                </li>
                                      <li>
                      at <abbr title="think\Container">Container</abbr>->invokeReflectMethod() in <a class="toggle" title="/www/wwwroot/lanzou.freeapks.cn/thinkphp/library/think/route/dispatch/Module.php line 131">Module.php line 131</a>                </li>
                                      <li>
                      at <abbr title="think\route\dispatch\Module">Module</abbr>->think\route\dispatch\{closure}()                </li>
                                      <li>
                      at call_user_func_array() in <a class="toggle" title="/www/wwwroot/lanzou.freeapks.cn/thinkphp/library/think/Middleware.php line 185">Middleware.php line 185</a>                </li>
                                      <li>
                      at <abbr title="think\Middleware">Middleware</abbr>->think\{closure}()                </li>
                                      <li>
                      at call_user_func() in <a class="toggle" title="/www/wwwroot/lanzou.freeapks.cn/thinkphp/library/think/Middleware.php line 130">Middleware.php line 130</a>                </li>
                                      <li>
                      at <abbr title="think\Middleware">Middleware</abbr>->dispatch() in <a class="toggle" title="/www/wwwroot/lanzou.freeapks.cn/thinkphp/library/think/route/dispatch/Module.php line 136">Module.php line 136</a>                </li>
                                      <li>
                      at <abbr title="think\route\dispatch\Module">Module</abbr>->exec() in <a class="toggle" title="/www/wwwroot/lanzou.freeapks.cn/thinkphp/library/think/route/Dispatch.php line 168">Dispatch.php line 168</a>                </li>
                                      <li>
                      at <abbr title="think\route\Dispatch">Dispatch</abbr>->run() in <a class="toggle" title="/www/wwwroot/lanzou.freeapks.cn/thinkphp/library/think/App.php line 432">App.php line 432</a>                </li>
                                      <li>
                      at <abbr title="think\App">App</abbr>->think\{closure}()                </li>
                                      <li>
                      at call_user_func_array() in <a class="toggle" title="/www/wwwroot/lanzou.freeapks.cn/thinkphp/library/think/Middleware.php line 185">Middleware.php line 185</a>                </li>
                                      <li>
                      at <abbr title="think\Middleware">Middleware</abbr>->think\{closure}()                </li>
                                      <li>
                      at call_user_func() in <a class="toggle" title="/www/wwwroot/lanzou.freeapks.cn/thinkphp/library/think/Middleware.php line 130">Middleware.php line 130</a>                </li>
                                      <li>
                      at <abbr title="think\Middleware">Middleware</abbr>->dispatch() in <a class="toggle" title="/www/wwwroot/lanzou.freeapks.cn/thinkphp/library/think/App.php line 435">App.php line 435</a>                </li>
                                      <li>
                      at <abbr title="think\App">App</abbr>->run() in <a class="toggle" title="/www/wwwroot/lanzou.freeapks.cn/public/index.php line 21">index.php line 21</a>                </li>
                                  </ol>
              </div>
          </div>
              
          
              <div class="exception-var">
              <h2>Environment Variables</h2>
                      <table>
                              <caption>GET Data</caption>
                  <tbody>
                                      <tr>
                          <td>shopname</td>
                          <td>
                              会员30天                    </td>
                      </tr>
                                      <tr>
                          <td>username</td>
                          <td>
                              123456                    </td>
                      </tr>
                                      <tr>
                          <td>usertoken</td>
                          <td>
                              25b2f5996f4fe402d1c0846cfc25e84d                    </td>
                      </tr>
                                      <tr>
                          <td>out_trade_no</td>
                          <td>
                              12121212121212                    </td>
                      </tr>
                                  </tbody>
                          </table>
                      <table>
                              <caption>POST Data<small>empty</small></caption>
                          </table>
                      <table>
                              <caption>Files<small>empty</small></caption>
                          </table>
                      <table>
                              <caption>Cookies<small>empty</small></caption>
                          </table>
                      <table>
                              <caption>Session<small>empty</small></caption>
                          </table>
                      <table>
                              <caption>Server/Request Data</caption>
                  <tbody>
                                      <tr>
                          <td>USER</td>
                          <td>
                              www                    </td>
                      </tr>
                                      <tr>
                          <td>HOME</td>
                          <td>
                              /home/www                    </td>
                      </tr>
                                      <tr>
                          <td>HTTP_CONNECTION</td>
                          <td>
                              keep-alive                    </td>
                      </tr>
                                      <tr>
                          <td>HTTP_ACCEPT_ENCODING</td>
                          <td>
                              gzip, deflate, br                    </td>
                      </tr>
                                      <tr>
                          <td>HTTP_HOST</td>
                          <td>
                              lanzou.freeapks.cn                    </td>
                      </tr>
                                      <tr>
                          <td>HTTP_ACCEPT</td>
                          <td>
                              */*                    </td>
                      </tr>
                                      <tr>
                          <td>HTTP_USER_AGENT</td>
                          <td>
                              apifox/1.0.0 (https://www.apifox.cn)                    </td>
                      </tr>
                                      <tr>
                          <td>PATH_INFO</td>
                          <td>
                                                  </td>
                      </tr>
                                      <tr>
                          <td>REDIRECT_STATUS</td>
                          <td>
                              200                    </td>
                      </tr>
                                      <tr>
                          <td>SERVER_NAME</td>
                          <td>
                              lanzou.freeapks.cn                    </td>
                      </tr>
                                      <tr>
                          <td>SERVER_PORT</td>
                          <td>
                              80                    </td>
                      </tr>
                                      <tr>
                          <td>SERVER_ADDR</td>
                          <td>
                              192.168.0.41                    </td>
                      </tr>
                                      <tr>
                          <td>REMOTE_PORT</td>
                          <td>
                              47025                    </td>
                      </tr>
                                      <tr>
                          <td>REMOTE_ADDR</td>
                          <td>
                              111.177.121.156                    </td>
                      </tr>
                                      <tr>
                          <td>SERVER_SOFTWARE</td>
                          <td>
                              nginx/1.20.2                    </td>
                      </tr>
                                      <tr>
                          <td>GATEWAY_INTERFACE</td>
                          <td>
                              CGI/1.1                    </td>
                      </tr>
                                      <tr>
                          <td>REQUEST_SCHEME</td>
                          <td>
                              http                    </td>
                      </tr>
                                      <tr>
                          <td>SERVER_PROTOCOL</td>
                          <td>
                              HTTP/1.1                    </td>
                      </tr>
                                      <tr>
                          <td>DOCUMENT_ROOT</td>
                          <td>
                              /www/wwwroot/lanzou.freeapks.cn/public                    </td>
                      </tr>
                                      <tr>
                          <td>DOCUMENT_URI</td>
                          <td>
                              /index.php                    </td>
                      </tr>
                                      <tr>
                          <td>REQUEST_URI</td>
                          <td>
                              /v1/Pays?shopname=%E4%BC%9A%E5%91%9830%E5%A4%A9&amp;username=123456&amp;usertoken=25b2f5996f4fe402d1c0846cfc25e84d&amp;out_trade_no=12121212121212                    </td>
                      </tr>
                                      <tr>
                          <td>SCRIPT_NAME</td>
                          <td>
                              /index.php                    </td>
                      </tr>
                                      <tr>
                          <td>CONTENT_LENGTH</td>
                          <td>
                                                  </td>
                      </tr>
                                      <tr>
                          <td>CONTENT_TYPE</td>
                          <td>
                                                  </td>
                      </tr>
                                      <tr>
                          <td>REQUEST_METHOD</td>
                          <td>
                              GET                    </td>
                      </tr>
                                      <tr>
                          <td>QUERY_STRING</td>
                          <td>
                              s=/v1/Pays&amp;shopname=%E4%BC%9A%E5%91%9830%E5%A4%A9&amp;username=123456&amp;usertoken=25b2f5996f4fe402d1c0846cfc25e84d&amp;out_trade_no=12121212121212                    </td>
                      </tr>
                                      <tr>
                          <td>SCRIPT_FILENAME</td>
                          <td>
                              /www/wwwroot/lanzou.freeapks.cn/public/index.php                    </td>
                      </tr>
                                      <tr>
                          <td>FCGI_ROLE</td>
                          <td>
                              RESPONDER                    </td>
                      </tr>
                                      <tr>
                          <td>PHP_SELF</td>
                          <td>
                              /index.php                    </td>
                      </tr>
                                      <tr>
                          <td>REQUEST_TIME_FLOAT</td>
                          <td>
                              1666229623.0429                    </td>
                      </tr>
                                      <tr>
                          <td>REQUEST_TIME</td>
                          <td>
                              1666229623                    </td>
                      </tr>
                                  </tbody>
                          </table>
                      <table>
                              <caption>Environment Variables<small>empty</small></caption>
                          </table>
                      <table>
                              <caption>ThinkPHP Constants<small>empty</small></caption>
                          </table>
                  </div>
          
          <div class="copyright">
              <a title="官方网站" href="http://www.thinkphp.cn">ThinkPHP</a> 
              <span>V5.1.41 LTS</span> 
              <span>{ 十年磨一剑-为API开发设计的高性能框架 }</span>
          </div>
              <script>
              var LINE = 128;
      
              function $(selector, node){
                  var elements;
      
                  node = node || document;
                  if(document.querySelectorAll){
                      elements = node.querySelectorAll(selector);
                  } else {
                      switch(selector.substr(0, 1)){
                          case '#':
                              elements = [node.getElementById(selector.substr(1))];
                              break;
                          case '.':
                              if(document.getElementsByClassName){
                                  elements = node.getElementsByClassName(selector.substr(1));
                              } else {
                                  elements = get_elements_by_class(selector.substr(1), node);
                              }
                              break;
                          default:
                              elements = node.getElementsByTagName();
                      }
                  }
                  return elements;
      
                  function get_elements_by_class(search_class, node, tag) {
                      var elements = [], eles, 
                          pattern  = new RegExp('(^|\\s)' + search_class + '(\\s|$)');
      
                      node = node || document;
                      tag  = tag  || '*';
      
                      eles = node.getElementsByTagName(tag);
                      for(var i = 0; i < eles.length; i++) {
                          if(pattern.test(eles[i].className)) {
                              elements.push(eles[i])
                          }
                      }
      
                      return elements;
                  }
              }
      
              $.getScript = function(src, func){
                  var script = document.createElement('script');
                  
                  script.async  = 'async';
                  script.src    = src;
                  script.onload = func || function(){};
                  
                  $('head')[0].appendChild(script);
              }
      
              ;(function(){
                  var files = $('.toggle');
                  var ol    = $('ol', $('.prettyprint')[0]);
                  var li    = $('li', ol[0]);   
      
                  // 短路径和长路径变换
                  for(var i = 0; i < files.length; i++){
                      files[i].ondblclick = function(){
                          var title = this.title;
      
                          this.title = this.innerHTML;
                          this.innerHTML = title;
                      }
                  }
      
                  // 设置出错行
                  var err_line = $('.line-' + LINE, ol[0])[0];
                  err_line.className = err_line.className + ' line-error';
      
                  $.getScript('//cdn.bootcss.com/prettify/r298/prettify.min.js', function(){
                      prettyPrint();
      
                      // 解决Firefox浏览器一个很诡异的问题
                      // 当代码高亮后,ol的行号莫名其妙的错位
                      // 但是只要刷新li里面的html重新渲染就没有问题了
                      if(window.navigator.userAgent.indexOf('Firefox') >= 0){
                          ol[0].innerHTML = ol[0].innerHTML;
                      }
                  });
      
              })();
          </script>
          </body>
      </html>
      
      修改于 2022-10-20 01:41:01
      上一页
      积分事件、会员事件
      下一页
      支付宝APP支付(官方)
      Built with