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