1 Star 2 Fork 1

old-surest/微擎sql

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
index.php 1.68 KB
Copy Edit Raw Blame History
old-surest authored 2018-12-19 10:07 . 添加模块文档
<?php
//# 自定义辅助函数
require_once './bootstrap/helper.php';
//
//# 引入配置项目
require_once './framework/bootstrap.inc.php';
# 第一项测试| 读写配置文件
$param = $_GET['m'];
$model = m('extends');
switch ($param) {
case 'rc' : # 读取配置文件(满减多少)
$name = isset($_GET['name']) ? $_GET['name'] : 'm_off' ;
$config = $model->getConfig($name);
echo $config;
break;
case 'sc' : # 设置配置文件(满减多少)
$name = isset($_GET['name']) ? $_GET['name'] : 'm_off' ;
$val = $_GET['val'];
$config = $model->setConfig($name , $val);
dump('修改配置文件',$config);
break;
case 'ged' : # 获取余额提取的订单信息
$val = $_GET['val'] ?: 3;
$con = $model->getOrderExtractedInfo($val);
dd($con);
break;
case 'ge' : # 显示我的下线参加的团购订
$result = $model->getOrderExtractInfo();
dd($result);
break;
case 'wr' : # 发起余额提取后,写入订单表
# 这里测试, 先读取我的下线的团(可以提现的)
$info = $model->getOrderExtractInfo();
# 再写入到数据库中
$result = $model->setOrderExtractingInfo($info[0], $info[1]);
dd($result);
break;
case 'ad' : # 显示所有审核订单表中的订单 , 可传入状态值
$result = $model->showAudits();
dd($result);
break;
case 'aed' : # 审核用户提交订单接口
$result = $model->auditExtraed('1545127320' , 2);
dd($result);
break;
default:
$model->test('访问错误');
break;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ar13/micro_sql.git
git@gitee.com:ar13/micro_sql.git
ar13
micro_sql
微擎sql
master

Search

0d507c66 1850385 C8b1a773 1850385