You've already forked qlg.tsgz.moe
addons
app_download_files
extend
hyhproject
mobile
oss
static
thinkphp
upload
vendor
wxtmp
Message.php
index.php
pptWX.php
pptWXBase.php
url.php
wx.php
.gitignore
.htaccess
.user.ini
404.html
H5B854518.wgt
admin.php
app-release.apk
app_download.html
cash.lock
demo.php
get_startup.php
get_version.php
get_version_new.php
hyhproject.tar.gz
index.html
index.php
reg.lock
robots.txt
28 lines
603 B
PHP
Executable File
28 lines
603 B
PHP
Executable File
<?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();
|
|
}
|
|
}
|
|
|
|
}
|
|
|