application/index/controller/UserWithdraw.php
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace app\index\controller;
use app\index\model\MoneySpace;
use app\index\model\UserSpace;
use app\index\model\WithdrawMethodSpace;
use app\index\model\WithdrawSpace;
class UserWithdraw extends UserBase {
public function index() {
$WithdrawSpace_old= WithdrawSpace::where('uid', session('uid', '', 'index'))->order("update_time","desc")->select();
foreach ($WithdrawSpace_old as $value) {
$value['arr_pic']=explode(",", $value['pic']);
$WithdrawSpace[]= $value;
}
$this->assign('WithdrawSpace', $WithdrawSpace);
return $this->fetch();
}
public function add_withdraw_form() {
$WithdrawMethodSpace= WithdrawMethodSpace::where('uid', session('uid', '', 'index'))->select();
$UserSpace = UserSpace::where('uid', session('uid', '', 'index'))->find();
$percentage_space=db('money_config_space')->where('config_name','withdraw_commission_percentage')->find();
$static_space=db('money_config_space')->where('config_name','withdraw_commission_static')->find();
$percent=$percentage_space['config_value'];
$static_money=$static_space['config_value'];
$this->assign('percent', $percent);
$this->assign('static_money', $static_money);
$this->assign('user_money', $UserSpace['money']);
$this->assign('WithdrawMethodSpace', $WithdrawMethodSpace);
return $this->fetch();
}
public function withdraw_method_index() {
$WithdrawMethodSpace_old= WithdrawMethodSpace::where('uid', session('uid', '', 'index'))->select();
foreach ($WithdrawMethodSpace_old as $value) {
$value['arr_pic']=explode(",", $value['pic']);
$WithdrawMethodSpace[]= $value;
}
$this->assign('WithdrawMethodSpace', $WithdrawMethodSpace);
return $this->fetch();
}
public function del_method_action() {
//检查当前删除购物商品的人是否是之前商品购买者 防止外部代码删除
if(session('uid','', 'index')==request()->param('value')){
$res=WithdrawMethodSpace::where('id', request()->param('id'))->delete();
return $this->json_data($res);
}
}
public function add_withdraw_method_form() {
return $this->fetch();
}
public function edit_withdraw_method_form() {
$WithdrawMethodSpace = WithdrawMethodSpace::get(['id' => request()->param('id')]);
后面还有 64 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。