修改登录
This commit is contained in:
parent
847e6009cb
commit
a4203c9807
@ -48,6 +48,7 @@ class LoginService extends BaseService
|
|||||||
|
|
||||||
// 获取用户openid
|
// 获取用户openid
|
||||||
$wx_info_data = $weChat->codeToSession($wx_code);
|
$wx_info_data = $weChat->codeToSession($wx_code);
|
||||||
|
dump($wx_info_data);
|
||||||
if (empty($wx_info_data['session_key']) || empty($wx_info_data['openid'])) {
|
if (empty($wx_info_data['session_key']) || empty($wx_info_data['openid'])) {
|
||||||
return fail(HttpEnumCode::GET_WX_ERROR);
|
return fail(HttpEnumCode::GET_WX_ERROR);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -815,6 +815,7 @@ class PatientOrderService extends BaseService
|
|||||||
$return_result['message'] = "成功";
|
$return_result['message'] = "成功";
|
||||||
$return_result['status'] = 1;
|
$return_result['status'] = 1;
|
||||||
$return_result['data'] = $result;
|
$return_result['data'] = $result;
|
||||||
|
dump($return_result);
|
||||||
return success($return_result);
|
return success($return_result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -202,6 +202,7 @@ class Wechat
|
|||||||
// 返回值为空
|
// 返回值为空
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
dump($result);
|
||||||
if (isset($result['errcode'])){
|
if (isset($result['errcode'])){
|
||||||
if ($result['errcode'] == "40029"){
|
if ($result['errcode'] == "40029"){
|
||||||
// code过期
|
// code过期
|
||||||
|
|||||||
@ -143,7 +143,7 @@ class WechatPay
|
|||||||
"openid" => $openid // 下单用户的 openid
|
"openid" => $openid // 下单用户的 openid
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
dump($options);
|
||||||
try {
|
try {
|
||||||
$response = $app->getClient()->postJson("v3/pay/transactions/jsapi", $options);
|
$response = $app->getClient()->postJson("v3/pay/transactions/jsapi", $options);
|
||||||
if ($response->isFailed()) {
|
if ($response->isFailed()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user