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-09 00:52:04 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dfc0855468796428fdcd88c5e9603d86d26d7d19
dfc08554
1 parent
5e4b16c5
1.使用服务账号登录
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
app/Console/Commands/DevGoogle.php
app/Console/Commands/DevGoogle.php
View file @
dfc0855
...
...
@@ -38,9 +38,18 @@ class DevGoogle extends Command
*/
public
function
handle
()
{
// dd(1);
$gp
=
new
GooglePayment
();
$validator
=
new
\Google_Service_AndroidPublisher
(
$gp
->
client
);
$credentials_file
=
public_path
()
.
'/pc-api-7482901338487549764-603-566eccf76b91.json'
;
$client
=
new
\Google_Client
();
$client
->
setAuthConfig
(
$credentials_file
);
$client
->
setApplicationName
(
"Client_Library_Examples"
);
$client
->
setScopes
(
[
\Google_Service_AndroidPublisher
::
ANDROIDPUBLISHER
,
]
);
$validator
=
new
\Google_Service_AndroidPublisher
(
$client
);
$resp
=
$validator
->
purchases_subscriptions
->
get
(
'pub.yiyan.parlando.Parlando'
,
'monthly_yiyan_vip'
,
'aa'
);
dd
(
$resp
);
...
...
Please
register
or
login
to post a comment