|
@@ -68,7 +68,7 @@ function sendMessage1() {
|
|
|
$("#btnSendCode1").attr("disabled", "true");
|
|
|
$("#btnSendCode1").val(+curCount1 + "秒再获取");
|
|
|
|
|
|
- $.get("https://wxservice.ds-bay.com/user/send?phoneNumber=" + phone + "&openId=" + sessionStorage.getItem("openid"), function (res) {
|
|
|
+ $.get("https://wxservice.fu-qing.com/user/send?phoneNumber=" + phone + "&openId=" + sessionStorage.getItem("openid"), function (res) {
|
|
|
})
|
|
|
|
|
|
InterValObj1 = window.setInterval(SetRemainTime1, 1000);
|
|
@@ -95,7 +95,7 @@ submitForm = function () {
|
|
|
if (flag) {
|
|
|
var openid = getUrlParam("openid");
|
|
|
$.ajax({
|
|
|
- url: "https://wxservice.ds-bay.com/binding",
|
|
|
+ url: "https://wxservice.fu-qing.com/binding",
|
|
|
data: JSON.stringify({phone: $("#phone1").val(), code: $("#code1").val(), openId: openid}),
|
|
|
type: "POST",
|
|
|
contentType: 'application/json',
|
|
@@ -148,7 +148,10 @@ getCode = function () {
|
|
|
}
|
|
|
var code = getUrlParam('code') // 截取路径中的code,如果没有就去微信授权,如果已经获取到了就直接传code给后台获取openId
|
|
|
var local = window.location.href;
|
|
|
- var APPID = 'wxf9360d70bc1406ee';
|
|
|
+ // qhemato:wx8735db2da152ce19
|
|
|
+ var APPID = 'wx8735db2da152ce19';
|
|
|
+ // emato e站通: wxf9360d70bc1406ee
|
|
|
+ // var APPID = 'wxf9360d70bc1406ee';
|
|
|
if (code == null || code === '') {
|
|
|
window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + APPID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_base&state=#wechat_redirect'
|
|
|
} else {
|
|
@@ -160,7 +163,7 @@ getOpenId = function (code) {
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
dataType: 'text',
|
|
|
- url: 'https://wxservice.ds-bay.com/oauth2?code=' + code,
|
|
|
+ url: 'https://wxservice.fu-qing.com/oauth2?code=' + code,
|
|
|
success: function (res) {
|
|
|
if (res.status == -1) {
|
|
|
// 提示没有关注公众号 没有关注公众号跳转到关注公众号页面
|