Bill.php 2.2 KB

123
  1. <?php
  2. namespace app\service; use app\service\ConfServiceFacade; use app\service\api\UserServiceFacade; use laytp\traits\Error; use think\facade\Cache; use think\facade\Config; use think\facade\Request; use EasyWeChat\Factory; use think\facade\Db; class Bill { use Error; protected $client; public function __construct() { } public function record($pm = 0, $coin = 0, $type, $mark, $uid, $uniacid, $direct = false, $balance = 0, $isTime = 0) { goto vpObq; hQZ9g: $balance = $money - $coin; goto fhcGT; fYVlU: $balance = $money + $coin; goto gzuYo; lF1DN: try { goto twgsm; vmwr1: Db::commit(); goto Cg3Bo; g9mc6: throw new \Exception("\xe4\277\235\xe5\255\230\345\237\272\347\xa1\x80\344\277\241\xe6\x81\257\345\244\261\350\264\245"); goto Y69V6; Cg3Bo: return true; goto Lv91w; twgsm: $saveRes = $model->save($post); goto C3kDY; Y69V6: AN5zT: goto vmwr1; C3kDY: if ($saveRes) { goto AN5zT; } goto g9mc6; Lv91w: } catch (\Exception $e) { goto kw4AK; kw4AK: Db::rollback(); goto DBBbJ; DBBbJ: $this->setError("\xe6\x95\260\346\215\xae\xe5\272\223\345\274\x82\xe5\270\xb8\xef\274\x8c\xe6\223\215\xe4\xbd\234\345\xa4\xb1\xe8\xb4\xa5"); goto TJEGi; TJEGi: return false; goto MjX6h; MjX6h: } goto GvZXM; gzuYo: goto E23Fq; goto luSbl; c6xgE: FxeEI: goto ntN_e; vZw47: $post["\x74\171\x70\145"] = $type; goto YkVXp; n11He: $post["\x70\x6d"] = $pm; goto QvbSc; n1h6t: $post["\x62\141\x6c\x61\156\x63\145"] = $balance; goto fedOE; pFQej: if ($direct) { goto FxeEI; } goto JhcZ3; Hcpm0: $post["\x75\x6e\x69\141\x63\151\x64"] = $uniacid; goto TNl21; fhcGT: E23Fq: goto j8GYs; luSbl: lkx0Y: goto hQZ9g; vpObq: $model = new \app\model\Bill(); goto Exccw; Exccw: $payPrice = 0; goto n11He; UpcO8: QP1ru: goto n1h6t; JhcZ3: $loginUserInfo = \app\model\User::where("\x69\x64", "\75", $uid)->find(); goto pKeDz; YkVXp: $post["\155\141\162\x6b"] = $mark; goto cWk2a; sWo8S: if ($pm == 0) { goto lkx0Y; } goto fYVlU; QvbSc: $post["\143\157\x69\156"] = $coin; goto vZw47; j8GYs: goto QP1ru; goto c6xgE; TNl21: $post["\x69\x73\x5f\x74\x69\155\x65"] = $isTime; goto pFQej; pKeDz: $money = $loginUserInfo["\143\157\151\x6e"]; goto sWo8S; ntN_e: $balance = $balance; goto UpcO8; cWk2a: $post["\165\x69\144"] = $uid; goto Hcpm0; fedOE: Db::startTrans(); goto lF1DN; GvZXM: } }
  3. ?>