thinkphp3 多字段增减

$data = array(
    'money'=>array('exp','money+300'),
    'discount'=>array('exp','discount+200'),
);

M("user")->where(array('id' => 1))->save($data);

评论