ソースを参照

微信消息参数修改

lyr 8 年 前
コミット
954efb7bad

+ 17 - 3
patient-co-wlyy/src/main/java/com/yihu/wlyy/web/statistic/FileTestController.java

@ -7,6 +7,7 @@ import com.yihu.wlyy.web.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
@ -33,10 +34,23 @@ public class FileTestController extends BaseController {
            ObjectNode result = fastDFSUtil.upload(file.getInputStream(), "png", "测试");
            return write(200,"上传成功","data",result.toString());
        }catch (Exception e){
            return write(200, "上传成功", "data", result.toString());
        } catch (Exception e) {
            e.printStackTrace();
            return error(-1,"上传失败");
            return error(-1, "上传失败");
        }
    }
    @ApiOperation(value = "test")
    @RequestMapping(value = "/test", method = RequestMethod.GET)
    public String test() {
        try {
            String j = null;
            //JSONObject json = new JSONObject(j);
            JSONObject json2 = new JSONObject("");
            return "a";
        } catch (Exception e) {
            return error(-1, e.getMessage());
        }
    }
}

+ 1 - 1
patient-co-wlyy/src/main/resources/system.properties

@ -131,7 +131,7 @@ fastdfs_file_url=http://172.19.103.54:80/
##预约取消
#template_appoint_failed=r-bVEKgXVyl8O96saoJXlLd7DX1zW7fXA4a0PZHxiQM
##缴费提醒
#template_expenses_remind=r-bVEKgXVyl8O96saoJXlLd7DX1zW7fXA4a0PZHxiQM
#template_expenses_remind=pZby4Mz3H5angmjGTuvXzo9lwlaVfEiqORwI8soI-5E
##健康教育
#template_healthy_article=aO_qqk5nAXaGXhsikPVLNelqzwlrp1LTPfIQ1qRMpxo
##医生变更