|
@@ -276,7 +276,8 @@ export function protoMiddleware<T>(param: T, reqName: string, rspName: string, h
|
|
|
headerEnum,
|
|
headerEnum,
|
|
|
};
|
|
};
|
|
|
const package50 = buildProtoReq50(params);
|
|
const package50 = buildProtoReq50(params);
|
|
|
- APP.sendTradingServer(package50, undefined, {
|
|
|
|
|
|
|
+ const code = rspName ? funCode[rspName] : undefined
|
|
|
|
|
+ APP.sendTradingServer(package50, code, {
|
|
|
onSuccess: (res) => {
|
|
onSuccess: (res) => {
|
|
|
const { isSuccess, result } = parseProtoRsp50(res, rspName);
|
|
const { isSuccess, result } = parseProtoRsp50(res, rspName);
|
|
|
if (isSuccess) {
|
|
if (isSuccess) {
|