seven 1 周之前
父節點
當前提交
a1d47a5784

+ 7 - 0
app/Services/Payment/SanJinService.php

@@ -68,6 +68,13 @@ class SanJinService extends BaseService
         return $sign;
     }
 
+    /**
+     * @description: 发起支付订单
+     * @param {*} $amount 金额单位分
+     * @param {*} $orderNo  订单号
+     * @param {*} $type 支付通道
+     * @return {*}
+     */    
     public static function pay($amount,$orderNo,$type = self::PRODUCT_TEST)
     {
 

+ 35 - 0
database/migrations/2025_11_13_143754_add_payment_fields_to_payment_orders_table.php

@@ -0,0 +1,35 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('payment_orders', function (Blueprint $table) {
+            //
+            $table->string('pay_no')->nullable()->comment('支付单号');
+            $table->text('pay_url')->nullable()->comment('支付地址');
+            $table->json('pay_data')->nullable()->comment('支付发起返回内容');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('payment_orders', function (Blueprint $table) {
+            //
+        });
+    }
+};