Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-Server
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
李帅
2022-11-07 23:56:52 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cbc6624b6d0a851145f73b6d159f78324505533b
cbc6624b
1 parent
5fb26240
1.打印谷歌订阅测试日志
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
app/Http/Controllers/V1/PayController.php
database/migrations/2022_05_31_162437_alter_membership_table.php
app/Http/Controllers/V1/PayController.php
View file @
cbc6624
...
...
@@ -6,6 +6,7 @@ use App\Http\Controllers\Controller;
use
App\Models\Order
;
use
App\Payment\PaymentFactory
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Log
;
use
Jiannei\Response\Laravel\Support\Facades\Response
;
class
PayController
extends
Controller
...
...
@@ -13,6 +14,8 @@ class PayController extends Controller
public
function
index
(
Request
$request
,
PaymentFactory
$factory
)
{
Log
::
debug
(
'get :'
);
Log
::
debug
(
print_r
(
$request
->
all
(),
1
));
$order_sn
=
$request
->
get
(
'order_sn'
);
$pay_type
=
$request
->
get
(
'pay_type'
);
...
...
@@ -38,6 +41,8 @@ class PayController extends Controller
*/
public
function
store
(
Request
$request
,
PaymentFactory
$factory
)
{
Log
::
debug
(
'post :'
);
Log
::
debug
(
print_r
(
$request
->
all
(),
1
));
// 回调
$order_sn
=
$request
->
post
(
'order_sn'
);
$pay_type
=
$request
->
post
(
'pay_type'
);
...
...
database/migrations/2022_05_31_162437_alter_membership_table.php
View file @
cbc6624
...
...
@@ -15,7 +15,9 @@ class AlterMembershipTable extends Migration
{
//
Schema
::
table
(
'membership_goods'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'name'
)
->
after
(
'membership_id'
)
->
default
(
''
)
->
comment
(
'商品名称'
);
$table
->
string
(
'iap_id'
)
->
after
(
'membership_id'
)
->
default
(
''
)
->
comment
(
'iap产品id'
);
$table
->
string
(
'name'
)
->
after
(
'iap_id'
)
->
default
(
''
)
->
comment
(
'商品名称'
);
$table
->
string
(
'iap_type'
)
->
after
(
'terminal'
)
->
default
(
''
)
->
comment
(
'iap产品类型'
);
});
}
...
...
Please
register
or
login
to post a comment