...
|
...
|
@@ -27,10 +27,7 @@ const payments = { |
|
|
const _getBanner = (param) => {
|
|
|
return serviceAPI.get('operations/api/v5/resource/get', {
|
|
|
content_code: param.contentCode
|
|
|
}, {
|
|
|
code: 200
|
|
|
}).then((result) => {
|
|
|
|
|
|
}, { code: 200 }).then((result) => {
|
|
|
result = result.data;
|
|
|
|
|
|
return result;
|
...
|
...
|
@@ -46,10 +43,7 @@ const _getOthersBuy2 = (param) => { |
|
|
rec_pos: '100005',
|
|
|
limit: 2,
|
|
|
client_id: param.client_id
|
|
|
}, {
|
|
|
code: 200
|
|
|
}).then((result) => {
|
|
|
|
|
|
}, { code: 200 }).then((result) => {
|
|
|
if (result && result.data && result.data.product_list) {
|
|
|
return productProcess.processProductList(result.data.product_list);
|
|
|
}
|
...
|
...
|
@@ -64,12 +58,8 @@ const _getOtherDetail = (param) => { |
|
|
uid: param.uid,
|
|
|
order_code: param.orderCode,
|
|
|
session_key: param.sessionKey
|
|
|
}, {
|
|
|
code: 200
|
|
|
}).then((result) => {
|
|
|
|
|
|
}, { code: 200 }).then(result => {
|
|
|
return result;
|
|
|
|
|
|
});
|
|
|
};
|
|
|
|
...
|
...
|
@@ -98,7 +88,7 @@ const _getOthersBuy = (param) => { |
|
|
* @param id
|
|
|
*/
|
|
|
const getBankByOrder = (id) => {
|
|
|
return co(function*() {
|
|
|
return co(function* () {
|
|
|
let result = yield payApi.getBankByOrder(id);
|
|
|
|
|
|
if (result && result.code === 200 && result.data) {
|
...
|
...
|
@@ -115,7 +105,7 @@ const getBankByOrder = (id) => { |
|
|
* @param bankCode
|
|
|
*/
|
|
|
const setOrderPayBank = (code, payment, bankCode) => {
|
|
|
return co(function*() {
|
|
|
return co(function* () {
|
|
|
let data = yield payApi.setOrderPayBank(code, payment, bankCode);
|
|
|
|
|
|
return data;
|
...
|
...
|
@@ -127,7 +117,7 @@ const setOrderPayBank = (code, payment, bankCode) => { |
|
|
* @param id
|
|
|
*/
|
|
|
const getPaymentInfo = (id) => {
|
|
|
return co(function*() {
|
|
|
return co(function* () {
|
|
|
let result = yield payApi.getPaymentInfo(id);
|
|
|
|
|
|
if (result && result.code === 200 && result.data) {
|
...
|
...
|
@@ -144,7 +134,7 @@ const getPaymentInfo = (id) => { |
|
|
* @param uid
|
|
|
*/
|
|
|
const sendPayConfirm = (code, payment, uid) => {
|
|
|
return co(function*() {
|
|
|
return co(function* () {
|
|
|
let data = yield payApi.sendPayConfirm(code, payment, uid);
|
|
|
|
|
|
return data;
|
...
|
...
|
@@ -174,7 +164,7 @@ const updateOrderPayment = (code, payment, uid) => { |
|
|
* @param bankCode
|
|
|
*/
|
|
|
const updateOrderPayBank = (code, payment, bankCode) => {
|
|
|
return co(function*() {
|
|
|
return co(function* () {
|
|
|
let data = yield payApi.updateOrderPayBank(code, payment, bankCode);
|
|
|
|
|
|
return data;
|
...
|
...
|
@@ -188,7 +178,7 @@ const updateOrderPayBank = (code, payment, bankCode) => { |
|
|
* @param sessionKey
|
|
|
*/
|
|
|
const procOrderData = (payResult, uid, sessionKey) => {
|
|
|
return co(function*() {
|
|
|
return co(function* () {
|
|
|
let orderCode = payResult.orderCode;
|
|
|
let result = { code: 400, message: '' };
|
|
|
|
...
|
...
|
|