weizong song 4 years ago
parent 260cf68342
commit 1db84238de

@ -1645,6 +1645,7 @@ class OrdersController extends CommonController
$recharge = Recharge::find(request()->recharge_id);
$refund["payment"] = $recharge->payment;
$refund["recharge_id"] = request()->recharge_id;
$refund["merchant_id"] = $recharge->merchant_id;
break;
default:
return response()->json([

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddMerchantIdToRefund extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('refund', function (Blueprint $table) {
$table->string("merchant_id")->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('refund', function (Blueprint $table) {
//
});
}
}
Loading…
Cancel
Save