Showing
2 changed files
with
8 additions
and
1 deletions
| ... | @@ -6,6 +6,7 @@ use App\Http\Controllers\Controller; | ... | @@ -6,6 +6,7 @@ use App\Http\Controllers\Controller; |
| 6 | use App\Models\Order; | 6 | use App\Models\Order; |
| 7 | use App\Payment\PaymentFactory; | 7 | use App\Payment\PaymentFactory; |
| 8 | use Illuminate\Http\Request; | 8 | use Illuminate\Http\Request; |
| 9 | +use Illuminate\Support\Facades\Log; | ||
| 9 | use Jiannei\Response\Laravel\Support\Facades\Response; | 10 | use Jiannei\Response\Laravel\Support\Facades\Response; |
| 10 | 11 | ||
| 11 | class PayController extends Controller | 12 | class PayController extends Controller |
| ... | @@ -13,6 +14,8 @@ class PayController extends Controller | ... | @@ -13,6 +14,8 @@ class PayController extends Controller |
| 13 | 14 | ||
| 14 | public function index(Request $request,PaymentFactory $factory) | 15 | public function index(Request $request,PaymentFactory $factory) |
| 15 | { | 16 | { |
| 17 | + Log::debug('get :'); | ||
| 18 | + Log::debug(print_r($request->all(),1)); | ||
| 16 | $order_sn = $request->get('order_sn'); | 19 | $order_sn = $request->get('order_sn'); |
| 17 | 20 | ||
| 18 | $pay_type = $request->get('pay_type'); | 21 | $pay_type = $request->get('pay_type'); |
| ... | @@ -38,6 +41,8 @@ class PayController extends Controller | ... | @@ -38,6 +41,8 @@ class PayController extends Controller |
| 38 | */ | 41 | */ |
| 39 | public function store(Request $request, PaymentFactory $factory) | 42 | public function store(Request $request, PaymentFactory $factory) |
| 40 | { | 43 | { |
| 44 | + Log::debug('post :'); | ||
| 45 | + Log::debug(print_r($request->all(),1)); | ||
| 41 | // 回调 | 46 | // 回调 |
| 42 | $order_sn = $request->post('order_sn'); | 47 | $order_sn = $request->post('order_sn'); |
| 43 | $pay_type = $request->post('pay_type'); | 48 | $pay_type = $request->post('pay_type'); | ... | ... |
| ... | @@ -15,7 +15,9 @@ class AlterMembershipTable extends Migration | ... | @@ -15,7 +15,9 @@ class AlterMembershipTable extends Migration |
| 15 | { | 15 | { |
| 16 | // | 16 | // |
| 17 | Schema::table('membership_goods', function (Blueprint $table) { | 17 | Schema::table('membership_goods', function (Blueprint $table) { |
| 18 | - $table->string('name')->after('membership_id')->default('')->comment('商品名称'); | 18 | + $table->string('iap_id')->after('membership_id')->default('')->comment('iap产品id'); |
| 19 | + $table->string('name')->after('iap_id')->default('')->comment('商品名称'); | ||
| 20 | + $table->string('iap_type')->after('terminal')->default('')->comment('iap产品类型'); | ||
| 19 | }); | 21 | }); |
| 20 | } | 22 | } |
| 21 | 23 | ... | ... |
-
Please register or login to post a comment