Commit 52f869be by 冷斌

add

parent 0a9ff004
......@@ -42,9 +42,8 @@ class WelfareController extends AdminbaseController
if (empty($check)) {
M("welfare_rate")->add($p);
} else {
$a = M("welfare_rate")->where("id=1");
$b = $a->save(['price' => $price]);
var_dump($b);
$a = M("welfare_rate")->where(array('id' => 1))->save(['price' => $price]);
var_dump($a);
die;
}
}
......
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