修改alipay地址
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* @Author: kangkang
|
||||
* @Date: 2020-10-11 11:22:56
|
||||
* @LastEditors: kangkang
|
||||
* @LastEditTime: 2020-10-12 12:06:20
|
||||
* @LastEditTime: 2020-10-14 10:16:05
|
||||
*/
|
||||
|
||||
namespace app\order\controller;
|
||||
@@ -13,7 +13,7 @@ namespace app\order\controller;
|
||||
use app\order\model\CashOut as CashMoedl;
|
||||
use fastphp\base\Controller;
|
||||
|
||||
class Admin extends Controller
|
||||
class CashOutAdmin extends Controller
|
||||
{
|
||||
//获取记录
|
||||
public function getData()
|
||||
@@ -58,9 +58,9 @@ class Admin extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 订单搜索
|
||||
* @param {type} 搜索会员账号
|
||||
* @return {type} 该会员所有的订单信息 按照id倒序
|
||||
* @description: 处理订单
|
||||
* @param {type}
|
||||
* @return {type}
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
@@ -2,8 +2,8 @@
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2020-10-10 13:58:14
|
||||
* @LastEditTime: 2020-10-12 11:15:09
|
||||
* @LastEditors: your name
|
||||
* @LastEditTime: 2020-10-13 19:48:51
|
||||
* @LastEditors: kangkang
|
||||
* @Description: In User Settings Edit
|
||||
* @FilePath: /phptest/app/order/controller/Index.php
|
||||
*/
|
||||
@@ -13,7 +13,7 @@ namespace app\order\controller;
|
||||
use app\order\model\CashOut as CashMoedl;
|
||||
use fastphp\base\Controller;
|
||||
|
||||
class Index extends Controller
|
||||
class CashOutIndex extends Controller
|
||||
{
|
||||
//接收提现请求
|
||||
public function index()
|
||||
118
app/order/controller/TbRefund.php
Normal file
118
app/order/controller/TbRefund.php
Normal file
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
/*
|
||||
* @Descripttion:
|
||||
* @version:
|
||||
* @Author: kangkang
|
||||
* @Date: 2020-10-13 19:52:37
|
||||
* @LastEditors: kangkang
|
||||
* @LastEditTime: 2020-10-14 20:12:00
|
||||
*/
|
||||
/*
|
||||
* @Descripttion:
|
||||
* @version:
|
||||
* @Author: kangkang
|
||||
* @Date: 2020-10-13 19:52:37
|
||||
* @LastEditors: kangkang
|
||||
* @LastEditTime: 2020-10-14 20:04:16
|
||||
*/
|
||||
|
||||
namespace app\order\controller;
|
||||
|
||||
use app\order\model\TbRefund as RefundMOdel;
|
||||
use enum\order\TbRefund as RefundEnum;
|
||||
use fastphp\base\Controller;
|
||||
|
||||
class TbRefund extends Controller
|
||||
{
|
||||
function list() {
|
||||
$refund = new RefundMOdel;
|
||||
$list = $refund->getListPage();
|
||||
foreach ($list as &$v) {
|
||||
$v['Phone'] = substr($v['Phone'], 0, 3) . '***' . substr($v['Phone'], -3);
|
||||
$v['status'] = RefundEnum::$refundStatus[$v['status']];
|
||||
}
|
||||
$count = $refund->getCount();
|
||||
$data = [
|
||||
'Code' => 10000,
|
||||
'count' => $count['count'],
|
||||
'data' => $list,
|
||||
];
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
public function pageList()
|
||||
{
|
||||
if (!$_GET) {
|
||||
die;
|
||||
}
|
||||
$page = ($_GET['page'] - 1) * 50;
|
||||
$refund = new RefundMOdel;
|
||||
$list = $refund->getListPage([], '*', 'id desc', "$page,50");
|
||||
foreach ($list as &$v) {
|
||||
$v['Phone'] = substr($v['Phone'], 0, 3) . '***' . substr($v['Phone'], -3);
|
||||
$v['status'] = RefundEnum::$refundStatus[$v['status']];
|
||||
}
|
||||
$data = [
|
||||
'Code' => 10000,
|
||||
'data' => $list,
|
||||
];
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
//获取记录
|
||||
public function search()
|
||||
{
|
||||
$Phone = json_decode(file_get_contents("php://input"), true)['Phone'];
|
||||
$refund = new RefundMOdel;
|
||||
if ($Phone) {
|
||||
$list = $refund->getListPage(['Phone' => $Phone], '*', 'id desc', '100');
|
||||
} else {
|
||||
$list = $refund->getListPage();
|
||||
$count = $refund->getCount();
|
||||
}
|
||||
foreach ($list as &$v) {
|
||||
$v['Phone'] = substr($v['Phone'], 0, 3) . '***' . substr($v['Phone'], -3);
|
||||
$v['status'] = RefundEnum::$refundStatus[$v['status']];
|
||||
}
|
||||
$data = [
|
||||
'Code' => 10000,
|
||||
'count' => $count['count'] ?? 0,
|
||||
'data' => $list,
|
||||
];
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取点击的那一条数据
|
||||
* @param {type}
|
||||
* @return {type}
|
||||
*/
|
||||
public function getOneInfo()
|
||||
{
|
||||
if (!$_GET) {
|
||||
die;
|
||||
}
|
||||
$id = $_GET['id'];
|
||||
$refund = new RefundMOdel;
|
||||
$where = ['Id' => $id];
|
||||
$info = $refund->getOne($where);
|
||||
$data = [
|
||||
'Code' => 10000,
|
||||
'data' => $info,
|
||||
];
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 处理退款
|
||||
* @param {type}
|
||||
* @return {type}
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$data = json_decode(file_get_contents("php://input"), true)['info'];
|
||||
$id = $data['Id'];
|
||||
dump($data);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user