1 | 'use strict';
|
2 |
|
3 | var util = require('./util');
|
4 | var wrapper = util.wrapper;
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | exports.updateFeedback = function (openid, feedbackId, callback) {
|
29 | this.preRequest(this._updateFeedback, arguments);
|
30 | };
|
31 |
|
32 | exports._updateFeedback = function (openid, feedbackId, callback) {
|
33 | var feedbackUrl = this.endpoint + '/payfeedback/update';
|
34 |
|
35 | var data = {
|
36 | 'access_token': this.token.accessToken,
|
37 | 'openid': openid,
|
38 | 'feedbackid': feedbackId
|
39 | };
|
40 | var opts = {
|
41 | dataType: 'json',
|
42 | type: 'GET',
|
43 | data: data,
|
44 | headers: {
|
45 | 'Content-Type': 'application/json'
|
46 | }
|
47 | };
|
48 | this.request(feedbackUrl, opts, wrapper(callback));
|
49 | };
|