...
|
...
|
@@ -487,15 +487,16 @@ class UserModel |
|
|
*
|
|
|
* @param int $uid 用户ID
|
|
|
* @param string $content 意见内容
|
|
|
* @param mixed $image 图片地址
|
|
|
* @param int $suggest_type 意见类型
|
|
|
* @return array|mixed 保存意见反馈数据之后的返回
|
|
|
*/
|
|
|
public static function saveSuggestData($uid, $content, $suggest_type)
|
|
|
public static function saveSuggestData($uid, $content, $image, $suggest_type)
|
|
|
{
|
|
|
$result = array('code' => 400, 'message' => '保存出错');
|
|
|
|
|
|
// 调用接口保存意见反馈数据
|
|
|
$save = UserData::savesuggestData($uid, $content, $suggest_type);
|
|
|
$save = UserData::savesuggestData($uid, $content, $image, $suggest_type);
|
|
|
|
|
|
if (isset($save['code']) && $save['code'] == 200) {
|
|
|
$result['code'] = 200;
|
...
|
...
|
|