Commit 7f96e2a8 by 冷斌

add

parent e6bc4618
...@@ -37,10 +37,14 @@ class WelfareController extends AdminbaseController ...@@ -37,10 +37,14 @@ class WelfareController extends AdminbaseController
'giftid' => 0, 'giftid' => 0,
'nums' => 0. 'nums' => 0.
]; ];
if ($check) { try{
$jackpot->create($p); if ($check) {
} else { $jackpot->create($p);
$jackpot->save($p); } else {
$jackpot->save($p);
}
}catch (\Exception $exception){
} }
} }
} }
...@@ -48,7 +52,6 @@ class WelfareController extends AdminbaseController ...@@ -48,7 +52,6 @@ class WelfareController extends AdminbaseController
function index(){ function index(){
$this->savePrice(); $this->savePrice();
$giftid= 76; $giftid= 76;
$map['giftid']=$giftid; $map['giftid']=$giftid;
......
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