黄啊码,一般都是比较简单粗暴的,直接上例子
<?php
defined("IN_IA") or exit("Access Denied");
class yzxcpt_sunModuleWxapp extends WeModuleWxapp
{
public function doPagecoupontlist()
{
goto RJq8z;
RJq8z:
global $_GPC, $_W;
goto Fd00u;
Fd00u:
$sid = $_GPC["\x73\x69\144"];
goto zEa5k;
zEa5k:
$page = max(1, intval($_GPC["\160\x61\x67\145"]));
goto h9fAf;
h9fAf:
$size = intval($_GPC["\x6c\x65\156\x67\164\x68"]) ? intval($_GPC["\x6c\145\x6e\147\x74\x68"]) : 10;
goto pZcKj;
pZcKj:
$coupon = pdo_fetchall("\163\x65\x6c\x65\x63\x74\40\141\x2e\x2a\40\x66\x72\x6f\x6d\40" . tablename("\x79\x7a\x78\143\x70\164\x5f\163\x75\x6e\137\143\157\x75\x70\x6f\x6e") . "\x61\x20\x6c\x65\x66\164\x20\x6a\157\x69\x6e\40" . tablename("\171\172\170\143\160\x74\137\x73\165\156\137\x73\x68\157\x70\x5f\x63\x6f\x75\160\x6f\x6e") . "\142\x20\x6f\x6e\x20\142\x2e\143\x69\x64\x20\x3d\x20\141\x2e\151\x64\40\167\150\x65\x72\x65\40\142\x2e\163\151\144\x20\75\40{$sid}\x20\141\156\x64\40\141\56\x73\x74\x61\x74\165\x73\x3d\61\40\141\x6e\x64\40\x61\56\x63\x68\145\143\153\x73\x20\x3d\x20\61\x20\141\x6e\144\x20\141\x2e\163\x74\141\164\x65\41\75\61\x20\141\156\144\x20\141\56\x75\x6e\x69\141\143\151\x64\40\75\40" . $_W["\x75\x6e\x69\141\x63\x69\x64"] . "\40\141\156\x64\40\142\56\x75\x6e\x69\x61\x63\x69\144\x20\x3d\40" . $_W["\x75\156\151\141\143\151\144"] . "\x20\154\151\x6d\151\164\40" . ($page - 1) * $size . "\x2c" . $size);
goto vffZo;
vffZo:
foreach ($coupon as $key => $value) {
goto H8EAI;
H8EAI:
if ($value["\163\164\141\164\x65"] == 1) {
goto Yn0N_;
}
goto sCZQr;
sCZQr:
if ($value["\x73\x74\141\x74\x65"] == 2) {
goto h23aY;
}
goto UDLmI;
UDLmI:
$coupon[$key]["\x73\150\x6f\160"]["\x6e\x61\155\145"] = "\xe9\200\x9a\347\x94\250";
goto aaTT8;
aaTT8:
goto KEerh;
goto OdbV7;
OdbV7:
Yn0N_:
goto dMffH;
dMffH:
$coupon[$key]["\x73\150\157\x70"] = pdo_get("\x79\x7a\x78\143\160\164\137\x73\165\156\137\163\150\157\160", array("\165\x6e\151\x61\x63\x69\144" => $_W["\x75\x6e\151\x61\x63\151\x64"], "\x69\x64" => $value["\163\x69\x64"]), array("\x6e\141\155\x65", "\151\163\143\157\x75\x70\x6f\156"));
goto x3KQl;
x3KQl:
goto KEerh;
goto weAfu;
weAfu:
h23aY:
goto s8Iqg;
s8Iqg:
$coupon[$key]["\x73\x68\157\x70"]["\x6e\x61\x6d\x65"] = "\xe9\x99\x90\351\203\250\xe5\210\x86\345\225\206\345\xae\xb6\344\275\xbf\347\224\xa8";
goto PQvO4;
PQvO4:
KEerh:
goto oyZDv;
oyZDv:
IyHnC:
goto Gzoio;
Gzoio:
}
goto Fcg6E;
Fcg6E:
I1y9r:
goto GoLNC;
GoLNC:
$info["\x63\157\x75\160\x6f\x6e"] = $coupon;
goto k3btY;
k3btY:
$info["\x73\x65\164"] = pdo_get("\x79\172\170\143\x70\164\x5f\163\165\x6e\x5f\x76\x69\160\x63\x61\x72\144\x5f\x73\x65\x74", array("\165\x6e\x69\141\143\x69\144" => $_W["\165\156\x69\141\143\x69\144"]));
goto vGEBd;
vGEBd:
$info["\165\163\x65\162"] = pdo_get("\171\x7a\170\143\160\x74\x5f\163\x75\x6e\137\x75\x73\145\162", array("\151\x64" => $_GPC["\x75\x69\x64"], "\165\156\151\141\143\x69\144" => $_W["\x75\156\151\x61\x63\151\144"]));
goto UkXDm;
UkXDm:
$this->return_msg(1, $info, "\163\x75\x63\143\x65\163\x73");
goto GF5Hz;
GF5Hz:
}
}
解密结果:
<?php
defined("IN_IA") or exit("Access Denied");
class yzxcpt_sunModuleWxapp extends WeModuleWxapp
{
public function doPagecoupontlist()
{
global $_GPC, $_W;
$sid = $_GPC["sid"];
$page = max(1, intval($_GPC["page"]));
$size = intval($_GPC["length"]) ? intval($_GPC["length"]) : 10;
$coupon = pdo_fetchall("select a.* from " . tablename("yzxcpt_sun_coupon") . "a left join " . tablename("yzxcpt_sun_shop_coupon") . "b on b.cid = a.id where b.sid = {$sid} and a.status=1 and a.checks = 1 and a.state!=1 and a.uniacid = " . $_W["uniacid"] . " and b.uniacid = " . $_W["uniacid"] . " limit " . ($page - 1) * $size . "," . $size);
foreach ($coupon as $key => $value) {
if ($value["state"] == 1) {
$coupon[$key]["shop"] = pdo_get("yzxcpt_sun_shop", array("uniacid" => $_W["uniacid"], "id" => $value["sid"]), array("name", "iscoupon"));
} else {
if ($value["state"] == 2) {
$coupon[$key]["shop"]["name"] = "限部分商家使用";
} else {
$coupon[$key]["shop"]["name"] = "通用";
}
}
}
$info["coupon"] = $coupon;
$info["set"] = pdo_get("yzxcpt_sun_vipcard_set", array("uniacid" => $_W["uniacid"]));
$info["user"] = pdo_get("yzxcpt_sun_user", array("id" => $_GPC["uid"], "uniacid" => $_W["uniacid"]));
$this->return_msg(1, $info, "success");
}
}
操作方式:
工具地址,工具收费,有问题请咨询v x:ama-huangama
https://download.csdn.net/download/TiaoZhanJi_Xian/33997440