Commit c778fc2b by 程默

fix

parent f74e40d8
let shopMixid= "dev001"; let shopMixid= "dev001";
let sessionid="eedbbdaf-844c-4fcc-8970-1fb92346441c";
console.log('----------------------------',process.env.sessionid) console.log('----------------------------',process.env.sessionid)
export function requestGET(url, options) { export function requestGET(url, options) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
...@@ -8,7 +9,7 @@ export function requestGET(url, options) { ...@@ -8,7 +9,7 @@ export function requestGET(url, options) {
method: "GET", method: "GET",
header: { header: {
"Shop-Mixid": shopMixid, "Shop-Mixid": shopMixid,
Authorization: "eedbbdaf-844c-4fcc-8970-1fb92346441c" Authorization: sessionid
}, },
success: function (res) { success: function (res) {
resolve(res) resolve(res)
...@@ -28,7 +29,7 @@ export function requestPOST(url, options) { ...@@ -28,7 +29,7 @@ export function requestPOST(url, options) {
method: "POST", method: "POST",
header: { header: {
"Shop-Mixid": shopMixid, "Shop-Mixid": shopMixid,
Authorization: "eedbbdaf-844c-4fcc-8970-1fb92346441c" Authorization: sessionid
}, },
success: function (res) { success: function (res) {
resolve(res) resolve(res)
...@@ -49,7 +50,7 @@ export async function requestPOST1(url, options) { ...@@ -49,7 +50,7 @@ export async function requestPOST1(url, options) {
header: { header: {
"Content-Type": "application/x-www-form-urlencoded", "Content-Type": "application/x-www-form-urlencoded",
"Shop-Mixid": shopMixid, "Shop-Mixid": shopMixid,
Authorization: "eedbbdaf-844c-4fcc-8970-1fb92346441c" Authorization: sessionid
}, },
success: function (res) { success: function (res) {
resolve(res) resolve(res)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment