Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

28
wxtmp/pptWX.php Executable file
View File

@ -0,0 +1,28 @@
<?php
require 'pptWXBase.php';
class pptWX extends pptWXBase
{
public function index(){
$abc='11111';
return $abc;
}
public function getList(){
$abc=[1,2,3,4,5];
return $abc;
}
}
//获取数据,通过路由信息,如***.com/passport/wx.php/pptWX/getList,即调用pptWX类getList方法
function getData(){
$uri = explode('/', parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
foreach ($uri as $k=>$v) {
if('pptWX' == $v){
$class = $uri[$k];
$object = new $class();
$action = $uri[($k+1)];
return $object->$action();
}
}
}