1 Star 4 Fork 2

Ripper / 微擎tp模块框架

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
wxapp.php 689 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ripper 提交于 2022-02-14 16:31 . 迁移版本发布
<?php
/**
* tp5_web模块小程序接口定义
*
* @author caiyunduoduo
* @url
*/
defined('IN_IA') or exit('Access Denied');
class Tp5_webModuleWxapp extends WeModuleWxapp {
/**
* 加载ThinkPHP框架
* @param $name
* @param $arguments
* @return false|void|null
*/
public function __call($name, $arguments)
{
header('Access-Control-Allow-Origin: *');//允许跨域请求
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Connection, User-Agent, Cookie');
header('Access-Control-Allow-Credentials: true');//允许跨域请求
include __DIR__.'/index.php';
exit;
}
}
PHP
1
https://gitee.com/ripperTs/w7_tp5.0.git
git@gitee.com:ripperTs/w7_tp5.0.git
ripperTs
w7_tp5.0
微擎tp模块框架
master

搜索帮助