|
|
|
@ -36,11 +36,11 @@ export const getAgencyProductsAction = async (param) => {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @param {object} body { id, travel_agency_id, extras: [{id, title, code}] }
|
|
|
|
|
*/
|
|
|
|
|
export const addProductExtraAction = async (body) => {
|
|
|
|
|
console.log('addProductExtraAction', body);
|
|
|
|
|
return true; // test: 先不更新到HT
|
|
|
|
|
// console.log('addProductExtraAction', body);
|
|
|
|
|
// return true; // test: 先不更新到HT
|
|
|
|
|
const { errcode, result } = await postJSON(`${HT_HOST}/Service_BaseInfoWeb/products_extras_add`, body);
|
|
|
|
|
return errcode === 0 ? true : false;
|
|
|
|
|
};
|
|
|
|
@ -49,7 +49,7 @@ export const addProductExtraAction = async (body) => {
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export const delProductExtrasAction = async (body) => {
|
|
|
|
|
return true; // test: 先不更新到HT
|
|
|
|
|
// return true; // test: 先不更新到HT
|
|
|
|
|
const { errcode, result } = await postJSON(`${HT_HOST}/Service_BaseInfoWeb/products_extras_del`, body);
|
|
|
|
|
return errcode === 0 ? true : false;
|
|
|
|
|
};
|
|
|
|
|