This commit is contained in:
邹宗楠
2025-08-29 15:20:05 +08:00
parent 6d1a0d8ee4
commit 6ab49beafe
6 changed files with 34 additions and 22 deletions

View File

@@ -35,26 +35,27 @@ func (c *LaKaLaCallbackController) ApplyContract() {
return
}
// ApplyContractByPeople 合同申请人工审核回调
func (c *LaKaLaCallbackController) ApplyContractByPeople() {
body, err := ioutil.ReadAll(c.Ctx.Request.Body)
if err != nil {
c.Data["json"] = lakala.CallBackResultInfo(err)
c.ServeJSON()
return
}
globals.SugarLogger.Debugf("-----applyContractByPeople := %s", string(body))
apply := &lakala.ApplyContractByPeopleCallBack{}
if err = json.Unmarshal(body, apply); err != nil {
c.Data["json"] = lakala.CallBackResultInfo(err)
c.ServeJSON()
return
}
c.Data["json"] = lakala.CallBackResultInfo(lakalaServer.ApplyContractByPeople(apply))
c.ServeJSON()
return
}
//
//// ApplyContractByPeople 合同申请人工审核回调
//func (c *LaKaLaCallbackController) ApplyContractByPeople() {
// body, err := ioutil.ReadAll(c.Ctx.Request.Body)
// if err != nil {
// c.Data["json"] = lakala.CallBackResultInfo(err)
// c.ServeJSON()
// return
// }
// globals.SugarLogger.Debugf("-----applyContractByPeople := %s", string(body))
// apply := &lakala.ApplyContractByPeopleCallBack{}
// if err = json.Unmarshal(body, apply); err != nil {
// c.Data["json"] = lakala.CallBackResultInfo(err)
// c.ServeJSON()
// return
// }
//
// c.Data["json"] = lakala.CallBackResultInfo(lakalaServer.ApplyContractByPeople(apply))
// c.ServeJSON()
// return
//}
// SeparateMsg 商户开通/修改分账业务回调
func (c *LaKaLaCallbackController) SeparateMsg() {