Js reconstructs Mini Program's sharing method onShareAppMessage

define a method as follows:

function e(t, n, o) {
  if (t[n]) {
    var e = t[n];
    t[n] = function(t) {
      return o.call(this, t, n), e.call(this, t)
    }
  } else
    t[n] = function(t) {
      return o.call(this, t, n)
    }
}

ReFactor the method in Mini Program page:

var v = Page;
Page = function(t) {
  c(t, "onLoad", pageOnload);
  c(t, "onUnload", pageOnunload);
  c(t, "onShow", pageOnshow);
  c(t, "onHide", pageOnunload);
  c(t, "onShareAppMessage", pageShare);
  v(t);
}

where onShareAppMessage

function pageShare(t, n) {
  var router = typeof this["__route__"] === "string" ? this["__route__"] : "";

  return {
    title: "age",
    path: router,
    success: function(t) {

      // console.log(1111);

      console.log("sdk:" + t.shareTickets[0]);


    },
    fail: function(res) {
      // 
      console.log(res);
    }
  }


};

however, the return successful callback method has never been adopted.
expect the result: successfully implement the method in the shared successful success and print out the console.log ("sdk forward:" + t.shareTickets [0]);

do you have any suggestions, Daniel?

Mar.11,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c444-2c308.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c444-2c308.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?