Authored by 李奇

/evalute/queryReasonBySettingType接口session_key添加

... ... @@ -166,8 +166,10 @@ exports.queryGlobalOrder = (req, res) => {
*/
exports.queryReasons = (req, res) => {
const type = req.body.type;
const uid = req.user.uid || req.query.uid;
const encryptedUid = crypto.encryption(null, uid + '');
imApi.queryReasons(type)
imApi.queryReasons(uid, encryptedUid, type)
.then(result=> {
res.json(result);
})
... ...
... ... @@ -123,9 +123,11 @@ exports.queryGlobalOrder = encryptedUid => {
* 获取评价原因
* @param type 客服设置类型
*/
exports.queryReasons = type => {
exports.queryReasons = (uid, encryptedUid, type) => {
let params = {
type
uid,
type,
encryptedUid
};
return ImService.post('/api/evalute/queryReasonBySettingType', params);
... ...
... ... @@ -152,6 +152,10 @@ RatingView.prototype = $.extend({}, EventEmitter.prototype, {
type: YOHO_CS
})
.done(res => {
if (res && res.code === 401) {
window.location.href = '//m.yohobuy.com/signin.html?refer=' + window.location.href;
}
if (res && res.code === 200) {
let $html;
let cause = [];
... ... @@ -166,8 +170,6 @@ RatingView.prototype = $.extend({}, EventEmitter.prototype, {
self.$more.show();
return;
}
tip.show('拉取评价原因失败');
})
.fail(()=> {
tip.show('拉取评价原因失败');
... ...