|
@@ -183,7 +183,7 @@ func CurlEducateSceneTokenQuery(args md.CurlEducateSceneTokenReq, userIdentity * |
|
|
"school_std_code": args.SchoolStdCode, |
|
|
"school_std_code": args.SchoolStdCode, |
|
|
"student_name": args.StudentName, |
|
|
"student_name": args.StudentName, |
|
|
"out_user_id": args.OutUserId, |
|
|
"out_user_id": args.OutUserId, |
|
|
"cert_type": "1", |
|
|
|
|
|
|
|
|
"cert_type": args.CertType, |
|
|
"sub_code": "SCHOOL_FACE_PASS_QUERY", |
|
|
"sub_code": "SCHOOL_FACE_PASS_QUERY", |
|
|
}), nil) |
|
|
}), nil) |
|
|
if err1 != nil { |
|
|
if err1 != nil { |
|
@@ -422,7 +422,7 @@ func CurlEducateSceneTokenCreateForApplet(args md.CurlEducateSceneTokenReq) (err |
|
|
"school_std_code": args.SchoolStdCode, |
|
|
"school_std_code": args.SchoolStdCode, |
|
|
"student_name": args.StudentName, |
|
|
"student_name": args.StudentName, |
|
|
"out_user_id": args.OutUserId, |
|
|
"out_user_id": args.OutUserId, |
|
|
"cert_type": "1", |
|
|
|
|
|
|
|
|
"cert_type": args.CertType, |
|
|
"sub_code": "SCHOOL_FACE_PASS_NAVIGATE", |
|
|
"sub_code": "SCHOOL_FACE_PASS_NAVIGATE", |
|
|
}), nil) |
|
|
}), nil) |
|
|
if err != nil { |
|
|
if err != nil { |
|
@@ -467,7 +467,7 @@ func CurlEducateSceneTokenCreateForConcentratedCollectApplet(args md.CurlEducate |
|
|
"school_std_code": args.SchoolStdCode, |
|
|
"school_std_code": args.SchoolStdCode, |
|
|
"student_name": args.StudentName, |
|
|
"student_name": args.StudentName, |
|
|
"out_user_id": args.OutUserId, |
|
|
"out_user_id": args.OutUserId, |
|
|
"cert_type": "1", |
|
|
|
|
|
|
|
|
"cert_type": args.CertType, |
|
|
"sub_code": "SCHOOL_PAYMENT_REMOTE_OPEN_ACCOUNT", |
|
|
"sub_code": "SCHOOL_PAYMENT_REMOTE_OPEN_ACCOUNT", |
|
|
"operator_user_id": args.OperatorUserId, //采集人员的支付宝会员标识。(当sub_code为SCHOOL_PAYMENT_REMOTE_OPEN_ACCOUNT时,当前参数必选) |
|
|
"operator_user_id": args.OperatorUserId, //采集人员的支付宝会员标识。(当sub_code为SCHOOL_PAYMENT_REMOTE_OPEN_ACCOUNT时,当前参数必选) |
|
|
}), nil) |
|
|
}), nil) |
|
@@ -703,3 +703,33 @@ func CurlAlipayPlanetEcocampusApiDebtCancel(args md.CurlAlipayPlanetEcocampusApi |
|
|
} |
|
|
} |
|
|
return nil, result.Data |
|
|
return nil, result.Data |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func CurlAlipayPlanetEcocampusApiRosterConsumeLimit(args md.CurlAlipayPlanetEcocampusApiRosterConsumeLimit) (err error, resp interface{}) { |
|
|
|
|
|
url := cfg.SmartCanteenPay + "/alipay/bPass/alipayPlanetEcocampusApiRosterConsumeLimit" |
|
|
|
|
|
utils.FilePutContents("CurlAlipayPlanetEcocampusApiRosterConsumeLimit", utils.SerializeStr(map[string]interface{}{ |
|
|
|
|
|
"args": args, |
|
|
|
|
|
})) |
|
|
|
|
|
bytes, err := utils.CurlPost(url, utils.Serialize(args), nil) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
var result struct { |
|
|
|
|
|
Code int `json:"code"` |
|
|
|
|
|
Msg string `json:"msg"` |
|
|
|
|
|
Data interface{} `json:"data"` |
|
|
|
|
|
} |
|
|
|
|
|
utils.FilePutContents("CurlAlipayPlanetEcocampusApiRosterConsumeLimit", utils.SerializeStr(result)) |
|
|
|
|
|
err = json.Unmarshal(bytes, &result) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if result.Code != 0 { |
|
|
|
|
|
if result.Msg != "" { |
|
|
|
|
|
err = errors.New(result.Msg) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
err = errors.New("请求智慧餐厅支付 异常/失败") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
return nil, result.Data |
|
|
|
|
|
} |