Commit db054087 by 冷斌

add

parent 82dcd8e6
......@@ -29,7 +29,6 @@ class WelfareController extends AdminbaseController
function savePrice()
{
$price=I('price');
echo $price;die;
if ($price > 0) {
$jackpot=M("welfare_rate");
$check = $jackpot->where("id=1")->find();
......@@ -40,10 +39,12 @@ class WelfareController extends AdminbaseController
];
try{
if ($check) {
$jackpot->create($p);
$a = $jackpot->create($p);
} else {
$jackpot->save($p);
$a = $jackpot->save($p);
}
var_dump($a);
die;
}catch (\Exception $exception){
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment