Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cdz_pay_v2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨苏杭
cdz_pay_v2
Commits
b1f7210e
Commit
b1f7210e
authored
Nov 30, 2018
by
yangsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改customer中的环境变量
parent
ae2a7c90
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
17 deletions
+13
-17
.env
+1
-1
.staging
+2
-0
customer/Lib/remote/api/message/SendMessage.php
+1
-2
customer/Lib/wx/Refund.php
+2
-2
customer/Lib/wx/Wx.php
+2
-10
customer/start.php
+3
-1
customer/start_check_shed.php
+2
-1
No files found.
.env
View file @
b1f7210e
...
...
@@ -55,4 +55,4 @@ WX_APP_ID=wx5a234043195ec484
WX_APP_SECRET=74af342df5f80ed48e32deffe893de56
WX_APP_KEY=shengpeng2017shengpeng2017shengp
WX_MCH_ID=1426979702
NB_HOST=http://cdz-nb.staging.senthink.com
.staging
View file @
b1f7210e
...
...
@@ -55,4 +55,6 @@ WX_APP_ID=wx5a234043195ec484
WX_APP_SECRET=74af342df5f80ed48e32deffe893de56
WX_APP_KEY=shengpeng2017shengpeng2017shengp
WX_MCH_ID=1426979702
WX_SSLCERT_PATH=/var/www/html/storage/cert/apiclient_cert.pem
WX_SSLKEY_PATH=/var/www/html/storage/cert/apiclient_key.pem
customer/Lib/remote/api/message/SendMessage.php
View file @
b1f7210e
...
...
@@ -20,10 +20,9 @@ class SendMessage
public
function
__construct
()
{
$this
->
path
=
'api/v1/wechatMessage'
;
$this
->
ur
i
=
'https://cdzback2.test.senthink.com'
;
$this
->
ur
l
=
getenv
(
'MANAGE_HOST'
)
;
}
...
...
customer/Lib/wx/Refund.php
View file @
b1f7210e
...
...
@@ -142,8 +142,8 @@ class Refund
'http_errors'
=>
false
,
'Content-Type'
=>
'text/xml; charset=UTF8'
,
'body'
=>
$requestXml
,
'ssl_key'
=>
WX
::
SSLKEY_PATH
,
'cert'
=>
WX
::
SSLCERT_PATH
,
'ssl_key'
=>
getenv
(
'WX SSLKEY_PATH'
)
,
'cert'
=>
getenv
(
'WX_SSLKEY_PATH'
)
,
]);
if
(
$response
->
getStatusCode
()
===
200
)
{
...
...
customer/Lib/wx/Wx.php
View file @
b1f7210e
...
...
@@ -20,21 +20,14 @@ class Wx
{
const
APP_ID
=
'wx5a234043195ec484'
;
// const APP_ID = 'wx72a0a0591e4e2539';
const
APP_SECRET
=
'74af342df5f80ed48e32deffe893de56'
;
// const APP_SECRET = '075401bcb54ae99b62cd9755f4bd939f';
const
APP_KEY
=
'shengpeng2017shengpeng2017shengp'
;
// const APP_KEY = 'senthink2015senthink2015senthink';
const
LANG
=
'zh_CN'
;
const
MCH_ID
=
'1426979702'
;
// const MCH_ID = '1420618402';
const
SSLCERT_PATH
=
__DIR__
.
'/cert/apiclient_cert.pem'
;
...
...
@@ -51,8 +44,7 @@ class Wx
public
static
function
sign
(
array
$content
)
{
$content
=
array_filter
(
$content
,
function
(
$value
)
{
$content
=
array_filter
(
$content
,
function
(
$value
)
{
return
filled
(
$value
);
...
...
@@ -72,7 +64,7 @@ class Wx
//$str = trim($str,'&');
$str
.=
'key='
.
self
::
APP_KEY
;
$str
.=
'key='
.
getenv
(
'WX_APP_KEY'
)
;
return
strtoupper
(
md5
(
$str
));
...
...
customer/start.php
View file @
b1f7210e
...
...
@@ -18,7 +18,7 @@ use Illuminate\Database\Capsule\Manager as Capsule;
use
Illuminate\Events\Dispatcher
;
use
Illuminate\Container\Container
;
$dotenv
=
new
\Dotenv\Dotenv
(
__DIR__
);
$dotenv
=
new
\Dotenv\Dotenv
(
__DIR__
.
'../'
);
$dotenv
->
load
();
...
...
@@ -61,6 +61,8 @@ try {
$queue
->
consume
(
function
(
AMQPEnvelope
$envelope
,
AMQPQueue
$queue
)
{
\Lib\Gateway
::
$registerAddress
=
getenv
(
'GATEWAY_REGISTER'
);
$capule
=
new
Capsule
();
$capule
->
addConnection
([
...
...
customer/start_check_shed.php
View file @
b1f7210e
...
...
@@ -19,7 +19,7 @@ use Lib\redis\RedisSingle;
use
Lib\rabbit_mq\PublishPortShed
;
$dotenv
=
new
\Dotenv\Dotenv
(
__DIR__
);
$dotenv
=
new
\Dotenv\Dotenv
(
__DIR__
.
'../'
);
$dotenv
->
load
();
try
{
...
...
@@ -59,6 +59,7 @@ Log::info('启动检查口子脱落消费者');
try
{
$queue
->
consume
(
function
(
AMQPEnvelope
$envelope
,
AMQPQueue
$queue
)
{
\Lib\Gateway
::
$registerAddress
=
getenv
(
'GATEWAY_REGISTER'
);
$capule
=
new
Capsule
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment