$data['uid'] = I('post.uid');
$data['jid'] = I('post.jid');
$data['rental'] = I('post.rental');
$data['cope'] = I('post.cope');
dump($data);
$cope = $pay -> addAll($data);
echo $pay -> getLastSql();
dump($cope);这是打印出来的值array(4) {
["uid"] => array(2) {
[0] => string(1) "5"
[1] => string(1) "5"
}
["jid"] => string(1) "5"
["rental"] => string(3) "300"
["cope"] => array(2) {
[0] => string(3) "150"
[1] => string(3) "150"
}
} 最佳答案