Application/Admin/Controller/PayController.class.php
(完整代码) 1KB<?php
namespace Admin\Controller;
use Think\Controller;
class PayController extends CommonController {
public function jinlist(){
$count = M('pay_jine')->count();
$page = my_page($count,10);
$limit = $page->firstRow . ',' . $page->listRows;
$pay_jine = M('pay_jine')->order('pjine asc,id asc')->limit($limit)->select();
$this->pay_jine = $pay_jine;
$this->page = $page->show();
$this->display();
}
public function jinedit(){
$id = I('id','','intval');
$pay_jine = M('pay_jine')->where("id=%d",$id)->find();
$this->pay_jine = $pay_jine;
$this->display();
}
public function jinsave(){
$id = I('get.id',0,'intval');
$pjine = I('pjine',0,'intval') * 100;
if($id == 0){
M('pay_jine')->add(array('pjine'=>$pjine));
} else {
M('pay_jine')->save(array('id'=>$id,'pjine'=>$pjine));
}
$this->success('成功',U('jinlist?p='.I('get.page')),1);
}
public function jindel(){
$id = I('get.id',0,'intval');
M('pay_jine')->delete($id);
$this->success('成功',U('jinlist?p='.I('get.page')),1);
}
}
?>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。