3, 'updated_at' => time(), 'msg' => $msg,'order_id'=>$order_id], ['source_id' => $source_id, 'order_sn' => $order_sn] ); // 打款成功 $cash = StoreWithdrawLog::findOne($source_id); WithdrawTransferService::remit_success($cash); } public static function payFialBySourceIdAndOrderSn( int $source_id, string $order_sn, string $msg = '打款失败' ) { static::updateAll( ['status' => 4, 'updated_at' => time(), 'msg' => $msg], ['source_id' => $source_id, 'order_sn' => $order_sn] ); // 打款失败 $cash = StoreWithdrawLog::findOne($source_id); WithdrawTransferService::remit_fail($cash, $msg); } }