|
@@ -32,7 +32,7 @@ class IndexData |
|
@@ -32,7 +32,7 @@ class IndexData |
32
|
* @param string $client_type
|
32
|
* @param string $client_type
|
33
|
* @return array
|
33
|
* @return array
|
34
|
*/
|
34
|
*/
|
35
|
- public static function getResourceData($content_code, $client_type = 'web')
|
35
|
+ public static function getResourceData($content_code, $client_type = 'web')
|
36
|
{
|
36
|
{
|
37
|
// 构建必传参数
|
37
|
// 构建必传参数
|
38
|
$params = Yohobuy::param();
|
38
|
$params = Yohobuy::param();
|
|
@@ -68,4 +68,33 @@ class IndexData |
|
@@ -68,4 +68,33 @@ class IndexData |
68
|
unset($param['v']);
|
68
|
unset($param['v']);
|
69
|
return Yohobuy::get(Yohobuy::API_URL, $param);
|
69
|
return Yohobuy::get(Yohobuy::API_URL, $param);
|
70
|
}
|
70
|
}
|
|
|
71
|
+
|
|
|
72
|
+ /**
|
|
|
73
|
+ * 意见反馈
|
|
|
74
|
+ *
|
|
|
75
|
+ * @param int $feedback_id
|
|
|
76
|
+ * @param int $question_id
|
|
|
77
|
+ * @param string $answer
|
|
|
78
|
+ * @param int $solution
|
|
|
79
|
+ * @return array
|
|
|
80
|
+ */
|
|
|
81
|
+ public static function suggestFeedback($feedback_id, $question_id, $answer, $solution)
|
|
|
82
|
+ {
|
|
|
83
|
+ //TODO 走老接口
|
|
|
84
|
+ $param = Yohobuy::param();
|
|
|
85
|
+ $param['page'] = 1;
|
|
|
86
|
+ $param['open_key'] = '12345';
|
|
|
87
|
+ $param['method'] = 'open.feedback.submit';
|
|
|
88
|
+ $param['feedback_id'] = $feedback_id;
|
|
|
89
|
+ $param['question_id'] = $question_id;
|
|
|
90
|
+ $param['answer'] = $answer;
|
|
|
91
|
+ $param['solution'] = $solution;
|
|
|
92
|
+ unset($param['app_version']);
|
|
|
93
|
+ unset($param['client_type']);
|
|
|
94
|
+ unset($param['os_version']);
|
|
|
95
|
+ unset($param['screen_size']);
|
|
|
96
|
+ unset($param['v']);
|
|
|
97
|
+ return Yohobuy::get(Yohobuy::API_URL, $param);
|
|
|
98
|
+ }
|
|
|
99
|
+
|
71
|
} |
100
|
} |