...
|
...
|
@@ -32,7 +32,7 @@ class IndexData |
|
|
* @param string $client_type
|
|
|
* @return array
|
|
|
*/
|
|
|
public static function getResourceData($content_code, $client_type = 'web')
|
|
|
public static function getResourceData($content_code, $client_type = 'web')
|
|
|
{
|
|
|
// 构建必传参数
|
|
|
$params = Yohobuy::param();
|
...
|
...
|
@@ -68,4 +68,33 @@ class IndexData |
|
|
unset($param['v']);
|
|
|
return Yohobuy::get(Yohobuy::API_URL, $param);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 意见反馈
|
|
|
*
|
|
|
* @param int $feedback_id
|
|
|
* @param int $question_id
|
|
|
* @param string $answer
|
|
|
* @param int $solution
|
|
|
* @return array
|
|
|
*/
|
|
|
public static function suggestFeedback($feedback_id, $question_id, $answer, $solution)
|
|
|
{
|
|
|
//TODO 走老接口
|
|
|
$param = Yohobuy::param();
|
|
|
$param['page'] = 1;
|
|
|
$param['open_key'] = '12345';
|
|
|
$param['method'] = 'open.feedback.submit';
|
|
|
$param['feedback_id'] = $feedback_id;
|
|
|
$param['question_id'] = $question_id;
|
|
|
$param['answer'] = $answer;
|
|
|
$param['solution'] = $solution;
|
|
|
unset($param['app_version']);
|
|
|
unset($param['client_type']);
|
|
|
unset($param['os_version']);
|
|
|
unset($param['screen_size']);
|
|
|
unset($param['v']);
|
|
|
return Yohobuy::get(Yohobuy::API_URL, $param);
|
|
|
}
|
|
|
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|