foreach遍历中如果需要定义数组,先给他赋值为空。
数据库添加数据的时候,钱要用decimal,小数点要用两位。
金钱方面的数要用sprintf('%.2f,$money') 注:2f表示两位
$info['wait_money'] = sprintf('%.2f',$info['target_money'] - $orderactivity->where($map)->sum('pay_price'));
$where['config_content'] = ['like','%Qua%']; //表示包含Qua
$where['config_content'] = ['like','Qua%']; //表示以Qua开始
$where['config_content'] = ['like','%Qua']; //表示以Qua结束