trick9191 7 роки тому
батько
коміт
50140cbdb8

+ 12 - 0
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/weixin/applets/AppletsService.java

@ -5,6 +5,7 @@ import com.yihu.wlyy.entity.patient.PatientAimSports;
import com.yihu.wlyy.repository.patient.PatientAimSportsDao;
import com.yihu.wlyy.repository.patient.PatientDao;
import com.yihu.wlyy.service.BaseService;
import com.yihu.wlyy.service.app.health.bank.TaskService;
import com.yihu.wlyy.util.SecretUtils;
import com.yihu.wlyy.util.http.HttpResponse;
import com.yihu.wlyy.util.http.HttpUtils;
@ -41,6 +42,8 @@ public class AppletsService extends BaseService {
    private PatientDao patientDao;
    @Autowired
    private PatientAimSportsDao patientAimSportsDao;
    @Autowired
    private TaskService taskService;
    public Map<String, Object> checkApplets(String code) throws Exception {
        HttpUtils httpUtils = new HttpUtils();
@ -138,6 +141,15 @@ public class AppletsService extends BaseService {
            patientAimSportsDao.save(patientAimSports);
        }
        //上传步数记录
        try{
            com.alibaba.fastjson.JSONObject json  = new com.alibaba.fastjson.JSONObject();
            json.put("patientId",patient);
            json.put("taskCode","ACTIVITY_STEP");
            taskService.createActiveRecord(json);
        }catch (Exception e){
            logger.info(e.toString());
        }
        return true;
    }

+ 1 - 1
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/web/patient/consult/ConsultController.java

@ -1335,7 +1335,7 @@ public class ConsultController extends WeixinBaseController {
            if (result.has("count") && result.has("amount")){
                return write(200, "查询成功!", "data", result);
            }else if (result.has("count") && !result.has("amount")){
                return error(-1, "查询已签约记录失败!");
                return error(-1, "您的签约已到期,请重新申请");
            }else {
                return error(-1, "查询失败!");
            }

+ 1 - 1
patient-co/patient-co-wlyy/src/main/resources/application-devtest.yml

@ -115,7 +115,7 @@ images:
sign:
  #check_upload: http://172.19.103.88:8011/wlyy_service
  check_upload: localhost:8070/wlyy_service
  check_upload: http://localhost:8070/
express: