Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持云托管的开放接口服务模式 #667

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

horsley
Copy link

@horsley horsley commented Apr 9, 2023

关于 #666 的demo改动

@houseme houseme requested a review from silenceper April 10, 2023 00:59
return
var uri string
if business.Config.NoAccessToken {
uri = getPhoneNumberURL[:len(getPhoneNumberURL)-16] // ?access_token=%s
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不建议这么搞,不然直接 getPhoneNumberURL 中就不保留参数;

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@silenceper OK,那各个接口需要整云托管和外网版两个url 再根据开关选择使用,我再改下

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

后面我对接支付的时候他们的差异更大,url都发生了变化,不只是少一个accessToken,另外出入参数结构、字段和形式都有所不同(云托管走json)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果出入参都变化了,那这种就不建议 在原方法上改了。 走单独的逻辑

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants