Commit c778fc2b by 程默

fix

parent f74e40d8
let shopMixid= "dev001";
let sessionid="eedbbdaf-844c-4fcc-8970-1fb92346441c";
console.log('----------------------------',process.env.sessionid)
export function requestGET(url, options) {
return new Promise((resolve, reject) => {
......@@ -8,7 +9,7 @@ export function requestGET(url, options) {
method: "GET",
header: {
"Shop-Mixid": shopMixid,
Authorization: "eedbbdaf-844c-4fcc-8970-1fb92346441c"
Authorization: sessionid
},
success: function (res) {
resolve(res)
......@@ -28,7 +29,7 @@ export function requestPOST(url, options) {
method: "POST",
header: {
"Shop-Mixid": shopMixid,
Authorization: "eedbbdaf-844c-4fcc-8970-1fb92346441c"
Authorization: sessionid
},
success: function (res) {
resolve(res)
......@@ -49,7 +50,7 @@ export async function requestPOST1(url, options) {
header: {
"Content-Type": "application/x-www-form-urlencoded",
"Shop-Mixid": shopMixid,
Authorization: "eedbbdaf-844c-4fcc-8970-1fb92346441c"
Authorization: sessionid
},
success: function (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