thinkphp 表达式更新

xiaoxiao2025-04-22  17

1. M('users_coin')->where("uid={$uid} and type='{$type}'")->setField(array('available'=>array('exp','available-'.$total_amont),'c2c_freeze'=>array('exp','c2c_freeze+'.$total_amont))); 2. $data['trans_amount']=array('exp','trans_amount+'.$amount); $data['trans_count'] =array('exp','trans_count+1'); M('config')->where('id=1')->save($data);
转载请注明原文地址: https://www.6miu.com/read-5028856.html

最新回复(0)