有插入代码的功能,如下图:
Db::name('finance_moneylog')->insert([ 'content' => $order['converted_name'].'增加' . $order['amount'], 'userid' => is_login(), 'create_time' => time(), 'type' => '资金转换审核通过', 'money_uid' => $order['dealer_id'], 'subcompany' => $order['subcompanyto'], 'order_no' => $order['order_no'], $order['converted_code'] => $order['amount'] ]);