Skip to content

Commit

Permalink
fix:修复OnReceivedResult CallbackId (#3313)
Browse files Browse the repository at this point in the history
* [Android]Optimize AndroidR logic

* fix:修复OnReceivedResult CallbackId

* fix

Co-authored-by: Huiying Jiang <[email protected]>
  • Loading branch information
katherine95s and Huiying Jiang authored Sep 7, 2022
1 parent ee74c3f commit cfadb50
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,8 @@ std::unique_ptr<IPCResult> HandleDispatchMessageSync(IPCArguments *arguments) {
}

std::unique_ptr<IPCResult> OnReceivedResult(IPCArguments *arguments) {
long callback_id = arguments->get<long>(0);
auto callbackId = std::unique_ptr<char[]>(getArumentAsCStr(arguments, 0));
long callback_id = atol(std::move(callbackId).get());
std::unique_ptr<WeexJSResult> result;
result.reset(new WeexJSResult);
if (arguments->getCount() > 1 && arguments->getType(1) == IPCType::BYTEARRAY &&
Expand Down

0 comments on commit cfadb50

Please sign in to comment.