Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

public static function createOrder($mobile, $product_id, $extparam, $customer_id, $c..

Decoded Output download

<?   
    public static function createOrder($mobile, $product_id, $extparam, $customer_id, $client = 1, $remark = '', $out_trade_num = '', $amount = '', $price = '', $isfxh5 = 0) 
    { 
        unset($Kh9tIMC); 
        $Kh9tIMC = trim($mobile); 
        $mobile = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = M('product p')->join('product_type pt', 'p.type=pt.id')->where(array('p.id' => $product_id, 'p.added' => 1))->field('p.*,pt.typec_id')->find(); 
        $prd = $Kh9tIMC; 
        $Kh9MC = !$prd; 
        if ($Kh9MC) goto Kh9eWjgxq; 
        goto Kh9ldMhxq; 
        Kh9eWjgxq: 
        return rjson(1, '(ID)'); 
        goto Kh9xp; 
        Kh9ldMhxq:Kh9xp: 
        $Kh9MD = (bool)$out_trade_num; 
        if ($Kh9MD) goto Kh9eWjgxt; 
        goto Kh9ldMhxt; 
        Kh9eWjgxt: 
        unset($Kh9tIMC); 
        $Kh9tIMC = M('porder')->where(array('out_trade_num' => $out_trade_num, 'status' => array('gt', 1), 'customer_id' => $customer_id))->find(); 
        unset($Kh9tIME); 
        $Kh9tIME = $Kh9tIMC; 
        $reod = $Kh9tIME; 
        $Kh9MD = $out_trade_num && $Kh9tIMC; 
        goto Kh9xs; 
        Kh9ldMhxt:Kh9xs: 
        if ($Kh9MD) goto Kh9eWjgxu; 
        goto Kh9ldMhxu; 
        Kh9eWjgxu: 
        return rjson(208, '', $reod['order_number']); 
        goto Kh9xr; 
        Kh9ldMhxu:Kh9xr: 
        if (M('mobile_blacklist')->where(array('mobile' => $mobile, 'limit_time' => array('gt', time())))->find()) goto Kh9eWjgxw; 
        goto Kh9ldMhxw; 
        Kh9eWjgxw: 
        return rjson(1, '-'); 
        goto Kh9xv; 
        Kh9ldMhxw:Kh9xv: 
        $Kh9MC = intval(C('LIMIT_ONE_PORDER')) > 0; 
        if ($Kh9MC) goto Kh9eWjgxy; 
        goto Kh9ldMhxy; 
        Kh9eWjgxy: 
        unset($Kh9tIMC); 
        $Kh9tIMC = M('porder')->where(array('mobile' => $mobile, 'type' => array('in', array(1, 2)), 'status' => array('not in', array(4, 5, 6, 7, 12, 13)), 'is_del' => 0))->count(); 
        $shuliang = $Kh9tIMC; 
        $Kh9MC = $shuliang >= intval(C('LIMIT_ONE_PORDER')); 
        if ($Kh9MC) goto Kh9eWjgx11; 
        goto Kh9ldMhx11; 
        Kh9eWjgx11: 
        $Kh9vPMC = '</br>' . $shuliang; 
        $Kh9vPMD = $Kh9vPMC . '</br>'; 
        return rjson(1, $Kh9vPMD); 
        goto Kh9xz; 
        Kh9ldMhx11:Kh9xz: 
        goto Kh9xx; 
        Kh9ldMhxy:Kh9xx: 
        $Kh9MC = intval(C('LIMITS_ONE_PORDER')) > 0; 
        if ($Kh9MC) goto Kh9eWjgx13; 
        goto Kh9ldMhx13; 
        Kh9eWjgx13: 
        unset($Kh9tIMC); 
        $Kh9tIMC = M('porder')->where(array('mobile' => $mobile, 'type' => 3, 'status' => array('not in', array(4, 5, 6, 7, 12, 13)), 'is_del' => 0))->count(); 
        $shuliang = $Kh9tIMC; 
        $Kh9MC = $shuliang >= intval(C('LIMITS_ONE_PORDER')); 
        if ($Kh9MC) goto Kh9eWjgx15; 
        goto Kh9ldMhx15; 
        Kh9eWjgx15: 
        $Kh9vPMC = '</br>' . $shuliang; 
        $Kh9vPMD = $Kh9vPMC . '</br>'; 
        return rjson(1, $Kh9vPMD); 
        goto Kh9x14; 
        Kh9ldMhx15:Kh9x14: 
        goto Kh9x12; 
        Kh9ldMhx13:Kh9x12: 
        $Kh9MC = C('LIMIT_ONE_CATE') == 1; 
        if ($Kh9MC) goto Kh9eWjgx17; 
        goto Kh9ldMhx17; 
        Kh9eWjgx17: 
        unset($Kh9tIMC); 
        $Kh9tIMC = M('porder')->where(array('mobile' => $mobile, 'product_cate' => array('not in', array(0, $prd['cate_id'])), 'status' => array('not in', array(4, 5, 6, 7, 12, 13))))->count(); 
        $cates = $Kh9tIMC; 
        $Kh9MC = $cates > 0; 
        if ($Kh9MC) goto Kh9eWjgx19; 
        goto Kh9ldMhx19; 
        Kh9eWjgx19: 
        return rjson(1, '!'); 
        goto Kh9x18; 
        Kh9ldMhx19:Kh9x18: 
        goto Kh9x16; 
        Kh9ldMhx17:Kh9x16: 
        unset($Kh9tIMC); 
        $Kh9tIMC = ''; 
        $province = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = ''; 
        $city = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = M('customer')->where(array('id' => $customer_id))->find(); 
        $user = $Kh9tIMC; 
        switch ($prd['typec_id']) { 
            case 1: 
            case 2: 
                $Kh9MC = !is_numeric($mobile); 
                $Kh9ME = (bool)$Kh9MC; 
                $Kh9MF = !$Kh9ME; 
                if ($Kh9MF) goto Kh9eWjgx1f; 
                goto Kh9ldMhx1f; 
                Kh9eWjgx1f: 
                $Kh9MD = mb_strlen($mobile) != 11; 
                $Kh9ME = $Kh9MC || $Kh9MD; 
                goto Kh9x1e; 
                Kh9ldMhx1f:Kh9x1e: 
                if ($Kh9ME) goto Kh9eWjgx1g; 
                goto Kh9ldMhx1g; 
                Kh9eWjgx1g: 
                return rjson(1, ''); 
                goto Kh9x1d; 
                Kh9ldMhx1g:Kh9x1d: 
                unset($Kh9tIMC); 
                $Kh9tIMC = QCellCore($mobile); 
                $guishu = $Kh9tIMC; 
                $Kh9MC = $guishu['errno'] != 0; 
                if ($Kh9MC) goto Kh9eWjgx1i; 
                goto Kh9ldMhx1i; 
                Kh9eWjgx1i: 
                return rjson($guishu['errno'], $guishu['errmsg']); 
                goto Kh9x1h; 
                Kh9ldMhx1i:Kh9x1h: 
                unset($Kh9tIMC); 
                $Kh9tIMC = Product::Ispzhan($mobile, $customer_id, $guishu); 
                $guishu = $Kh9tIMC; 
                $Kh9vPMC = '%' . $guishu['data']['isp']; 
                $Kh9vPMD = $Kh9vPMC . '%'; 
                unset($Kh9tIME); 
                $Kh9tIME = array('like', $Kh9vPMD); 
                $map['p.isp'] = $Kh9tIME; 
                unset($Kh9tIMC); 
                $Kh9tIMC = $guishu['data']['ispstr']; 
                $data['isp'] = $Kh9tIMC; 
                $Kh9MC = $guishu['data']['prov'] . $guishu['data']['city']; 
                unset($Kh9tIMD); 
                $Kh9tIMD = $Kh9MC; 
                $data['guishu'] = $Kh9tIMD; 
                unset($Kh9tIMC); 
                $Kh9tIMC = $guishu['data']['prov']; 
                $data['guishu_pro'] = $Kh9tIMC; 
                unset($Kh9tIMC); 
                $Kh9tIMC = $guishu['data']['city']; 
                $data['guishu_city'] = $Kh9tIMC; 
                unset($Kh9tIMC); 
                $Kh9tIMC = $guishu['data']['prov']; 
                $province = $Kh9tIMC; 
                unset($Kh9tIMC); 
                $Kh9tIMC = $guishu['data']['city']; 
                $city = $Kh9tIMC; 
                break 1; 
            case 3: 
                $Kh9MC = !isset($extparam['prov']); 
                $Kh9ME = (bool)$Kh9MC; 
                $Kh9MF = !$Kh9ME; 
                if ($Kh9MF) goto Kh9eWjgx1m; 
                goto Kh9ldMhx1m; 
                Kh9eWjgx1m: 
                $Kh9MD = !$extparam['prov']; 
                $Kh9ME = $Kh9MC || $Kh9MD; 
                goto Kh9x1l; 
                Kh9ldMhx1m:Kh9x1l: 
                if ($Kh9ME) goto Kh9eWjgx1n; 
                goto Kh9ldMhx1n; 
                Kh9eWjgx1n: 
                return rjson(1, ''); 
                goto Kh9x1k; 
                Kh9ldMhx1n:Kh9x1k: 
                $Kh9vPvPvPMC = '%' . $extparam['prov']; 
                $Kh9vPvPvPMD = $Kh9vPvPvPMC . '%'; 
                unset($Kh9tIME); 
                $Kh9tIME = M('electricity_city')->where(array('city_name' => array('like', $Kh9vPvPvPMD), 'is_del' => 0))->find(); 
                $ecity = $Kh9tIME; 
                $Kh9MC = !$ecity; 
                if ($Kh9MC) goto Kh9eWjgx1p; 
                goto Kh9ldMhx1p; 
                Kh9eWjgx1p: 
                return rjson(1, ''); 
                goto Kh9x1o; 
                Kh9ldMhx1p:Kh9x1o: 
                unset($Kh9tIMC); 
                $Kh9tIMC = $ecity['city_name']; 
                $data['isp'] = $Kh9tIMC; 
                unset($Kh9tIMC); 
                $Kh9tIMC = $ecity['city_name']; 
                $data['guishu_pro'] = $Kh9tIMC; 
                unset($Kh9tIMC); 
                $Kh9tIMC = $ecity['city_name']; 
                $province = $Kh9tIMC; 
                if (isset($extparam['city'])) goto Kh9eWjgx1r; 
                goto Kh9ldMhx1r; 
                Kh9eWjgx1r: 
                $Kh9MC = $extparam['city']; 
                goto Kh9x1q; 
                Kh9ldMhx1r: 
                $Kh9MC = ''; 
                Kh9x1q: 
                unset($Kh9tIMD); 
                $Kh9tIMD = $Kh9MC; 
                $city = $Kh9tIMD; 
                $Kh9MC = (bool)isset($extparam['id_card_no']); 
                if ($Kh9MC) goto Kh9eWjgx21; 
                goto Kh9ldMhx21; 
                Kh9eWjgx21: 
                $Kh9MC = isset($extparam['id_card_no']) && $extparam['id_card_no']; 
                goto Kh9x2z; 
                Kh9ldMhx21:Kh9x2z: 
                $Kh9MI = (bool)$Kh9MC; 
                if ($Kh9MI) goto Kh9eWjgx1y; 
                goto Kh9ldMhx1y; 
                Kh9eWjgx1y: 
                $Kh9MD = !isset($extparam['ytype']); 
                $Kh9MF = (bool)$Kh9MD; 
                $Kh9MK = !$Kh9MF; 
                if ($Kh9MK) goto Kh9eWjgx1w; 
                goto Kh9ldMhx1w; 
                Kh9eWjgx1w: 
                $Kh9ME = !$extparam['ytype']; 
                $Kh9MF = $Kh9MD || $Kh9ME; 
                goto Kh9x1v; 
                Kh9ldMhx1w:Kh9x1v: 
                $Kh9MH = (bool)$Kh9MF; 
                $Kh9MJ = !$Kh9MH; 
                if ($Kh9MJ) goto Kh9eWjgx1u; 
                goto Kh9ldMhx1u; 
                Kh9eWjgx1u: 
                $Kh9MG = !in_array(intval($extparam['ytype']), array(1, 2, 3)); 
                $Kh9MH = $Kh9MF || $Kh9MG; 
                goto Kh9x1t; 
                Kh9ldMhx1u:Kh9x1t: 
                $Kh9MI = $Kh9MC && $Kh9MH; 
                goto Kh9x1x; 
                Kh9ldMhx1y:Kh9x1x: 
                if ($Kh9MI) goto Kh9eWjgx22; 
                goto Kh9ldMhx22; 
                Kh9eWjgx22: 
                return rjson(1, '1/2/3', $ecity); 
                goto Kh9x1s; 
                Kh9ldMhx22:Kh9x1s: 
                $Kh9MC = (bool)isset($extparam['id_card_no']); 
                if ($Kh9MC) goto Kh9eWjgx27; 
                goto Kh9ldMhx27; 
                Kh9eWjgx27: 
                $Kh9MC = isset($extparam['id_card_no']) && $extparam['id_card_no']; 
                goto Kh9x26; 
                Kh9ldMhx27:Kh9x26: 
                $Kh9ME = (bool)$Kh9MC; 
                if ($Kh9ME) goto Kh9eWjgx25; 
                goto Kh9ldMhx25; 
                Kh9eWjgx25: 
                $Kh9MD = mb_strlen($extparam['id_card_no']) != 6; 
                $Kh9ME = $Kh9MC && $Kh9MD; 
                goto Kh9x24; 
                Kh9ldMhx25:Kh9x24: 
                if ($Kh9ME) goto Kh9eWjgx28; 
                goto Kh9ldMhx28; 
                Kh9eWjgx28: 
                return rjson(1, '//', $ecity); 
                goto Kh9x23; 
                Kh9ldMhx28:Kh9x23: 
                $Kh9MC = $ecity['need_ytype'] == 1; 
                $Kh9ME = (bool)$Kh9MC; 
                if ($Kh9ME) goto Kh9eWjgx2f; 
                goto Kh9ldMhx2f; 
                Kh9eWjgx2f: 
                $Kh9MD = $ecity['force_ytype'] == 1; 
                $Kh9ME = $Kh9MC && $Kh9MD; 
                goto Kh9x2e; 
                Kh9ldMhx2f:Kh9x2e: 
                $Kh9MI = (bool)$Kh9ME; 
                if ($Kh9MI) goto Kh9eWjgx2d; 
                goto Kh9ldMhx2d; 
                Kh9eWjgx2d: 
                $Kh9MF = !isset($extparam['id_card_no']); 
                $Kh9MH = (bool)$Kh9MF; 
                $Kh9MJ = !$Kh9MH; 
                if ($Kh9MJ) goto Kh9eWjgx2b; 
                goto Kh9ldMhx2b; 
                Kh9eWjgx2b: 
                $Kh9MG = !$extparam['id_card_no']; 
                $Kh9MH = $Kh9MF || $Kh9MG; 
                goto Kh9x2a; 
                Kh9ldMhx2b:Kh9x2a: 
                $Kh9MI = $Kh9ME && $Kh9MH; 
                goto Kh9x2c; 
                Kh9ldMhx2d:Kh9x2c: 
                if ($Kh9MI) goto Kh9eWjgx2g; 
                goto Kh9ldMhx2g; 
                Kh9eWjgx2g: 
                return rjson(1, '//'); 
                goto Kh9x29; 
                Kh9ldMhx2g:Kh9x29: 
                $Kh9MC = $ecity['need_city'] == 1; 
                $Kh9ME = (bool)$Kh9MC; 
                if ($Kh9ME) goto Kh9eWjgx2n; 
                goto Kh9ldMhx2n; 
                Kh9eWjgx2n: 
                $Kh9MD = $ecity['force_city'] == 1; 
                $Kh9ME = $Kh9MC && $Kh9MD; 
                goto Kh9x2m; 
                Kh9ldMhx2n:Kh9x2m: 
                $Kh9MI = (bool)$Kh9ME; 
                if ($Kh9MI) goto Kh9eWjgx2l; 
                goto Kh9ldMhx2l; 
                Kh9eWjgx2l: 
                $Kh9MF = !isset($extparam['city']); 
                $Kh9MH = (bool)$Kh9MF; 
                $Kh9MJ = !$Kh9MH; 
                if ($Kh9MJ) goto Kh9eWjgx2j; 
                goto Kh9ldMhx2j; 
                Kh9eWjgx2j: 
                $Kh9MG = !$extparam['city']; 
                $Kh9MH = $Kh9MF || $Kh9MG; 
                goto Kh9x2i; 
                Kh9ldMhx2j:Kh9x2i: 
                $Kh9MI = $Kh9ME && $Kh9MH; 
                goto Kh9x2k; 
                Kh9ldMhx2l:Kh9x2k: 
                if ($Kh9MI) goto Kh9eWjgx2o; 
                goto Kh9ldMhx2o; 
                Kh9eWjgx2o: 
                return rjson(1, ''); 
                goto Kh9x2h; 
                Kh9ldMhx2o:Kh9x2h: 
                if (isset($extparam['id_card_no'])) goto Kh9eWjgx2q; 
                goto Kh9ldMhx2q; 
                Kh9eWjgx2q: 
                $Kh9MC = $extparam['id_card_no']; 
                goto Kh9x2p; 
                Kh9ldMhx2q: 
                $Kh9MC = ''; 
                Kh9x2p: 
                unset($Kh9tIMD); 
                $Kh9tIMD = $Kh9MC; 
                $data['param1'] = $Kh9tIMD; 
                $Kh9ME = (bool)$data['param1']; 
                if ($Kh9ME) goto Kh9eWjgx2u; 
                goto Kh9ldMhx2u; 
                Kh9eWjgx2u: 
                if (isset($extparam['ytype'])) goto Kh9eWjgx2s; 
                goto Kh9ldMhx2s; 
                Kh9eWjgx2s: 
                $Kh9MC = $extparam['ytype']; 
                goto Kh9x2r; 
                Kh9ldMhx2s: 
                $Kh9MC = ''; 
                Kh9x2r: 
                unset($Kh9tIMD); 
                $Kh9tIMD = $Kh9MC; 
                unset($Kh9tIMF); 
                $Kh9tIMF = $Kh9tIMD; 
                $data['param2'] = $Kh9tIMF; 
                $Kh9ME = $data['param1'] && $Kh9tIMD; 
                goto Kh9x2t; 
                Kh9ldMhx2u:Kh9x2t: 
                if (isset($extparam['city'])) goto Kh9eWjgx2w; 
                goto Kh9ldMhx2w; 
                Kh9eWjgx2w: 
                $Kh9MC = $extparam['city']; 
                goto Kh9x2v; 
                Kh9ldMhx2w: 
                $Kh9MC = ''; 
                Kh9x2v: 
                unset($Kh9tIMD); 
                $Kh9tIMD = $Kh9MC; 
                $data['param3'] = $Kh9tIMD; 
                unset($Kh9tIMC); 
                $Kh9tIMC = $data['param3']; 
                $data['guishu_city'] = $Kh9tIMC; 
                break 1; 
            default: 
                if (isset($extparam['param1'])) goto Kh9eWjgx3z; 
                goto Kh9ldMhx3z; 
                Kh9eWjgx3z: 
                $Kh9MC = $extparam['param1']; 
                goto Kh9x2y; 
                Kh9ldMhx3z: 
                $Kh9MC = ''; 
                Kh9x2y: 
                unset($Kh9tIMD); 
                $Kh9tIMD = $Kh9MC; 
                $data['param1'] = $Kh9tIMD; 
                if (isset($extparam['param2'])) goto Kh9eWjgx32; 
                goto Kh9ldMhx32; 
                Kh9eWjgx32: 
                $Kh9MC = $extparam['param2']; 
                goto Kh9x31; 
                Kh9ldMhx32: 
                $Kh9MC = ''; 
                Kh9x31: 
                unset($Kh9tIMD); 
                $Kh9tIMD = $Kh9MC; 
                $data['param2'] = $Kh9tIMD; 
                if (isset($extparam['param3'])) goto Kh9eWjgx34; 
                goto Kh9ldMhx34; 
                Kh9eWjgx34: 
                $Kh9MC = $extparam['param3']; 
                goto Kh9x33; 
                Kh9ldMhx34: 
                $Kh9MC = ''; 
                Kh9x33: 
                unset($Kh9tIMD); 
                $Kh9tIMD = $Kh9MC; 
                $data['param3'] = $Kh9tIMD; 
                break 1; 
        } 
        unset($Kh9tIMC); 
        $Kh9tIMC = $product_id; 
        $map['p.id'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = 1; 
        $map['p.added'] = $Kh9tIMC; 
        $Kh9MD = (bool)in_array($client, array(Client::CLIENT_API, Client::CLIENT_AGA)); 
        $Kh9ME = !$Kh9MD; 
        if ($Kh9ME) goto Kh9eWjgx37; 
        goto Kh9ldMhx37; 
        Kh9eWjgx37: 
        $Kh9MC = $isfxh5 == 1; 
        $Kh9MD = in_array($client, array(Client::CLIENT_API, Client::CLIENT_AGA)) || $Kh9MC; 
        goto Kh9x36; 
        Kh9ldMhx37:Kh9x36: 
        if ($Kh9MD) goto Kh9eWjgx38; 
        goto Kh9ldMhx38; 
        Kh9eWjgx38: 
        unset($Kh9tIMC); 
        $Kh9tIMC = array('in', '1,3'); 
        $map['p.show_style'] = $Kh9tIMC; 
        goto Kh9x35; 
        Kh9ldMhx38:Kh9x35: 
        $Kh9MD = (bool)in_array($client, array(Client::CLIENT_WX, Client::CLIENT_H5, Client::CLIENT_MP)); 
        if ($Kh9MD) goto Kh9eWjgx3b; 
        goto Kh9ldMhx3b; 
        Kh9eWjgx3b: 
        unset($Kh9tIMC); 
        $Kh9tIMC = 0; 
        unset($Kh9tIME); 
        $Kh9tIME = $Kh9tIMC; 
        $isfxh5 = $Kh9tIME; 
        $Kh9MD = in_array($client, array(Client::CLIENT_WX, Client::CLIENT_H5, Client::CLIENT_MP)) && $Kh9tIMC; 
        goto Kh9x3a; 
        Kh9ldMhx3b:Kh9x3a: 
        if ($Kh9MD) goto Kh9eWjgx3c; 
        goto Kh9ldMhx3c; 
        Kh9eWjgx3c: 
        unset($Kh9tIMC); 
        $Kh9tIMC = array('in', '1,2'); 
        $map['p.show_style'] = $Kh9tIMC; 
        goto Kh9x39; 
        Kh9ldMhx3c:Kh9x39: 
        unset($Kh9tIMC); 
        $Kh9tIMC = Product::getProduct($map, $user['id'], $province, $city, $mobile); 
        $resdata = $Kh9tIMC; 
        $Kh9MC = $resdata['errno'] != 0; 
        if ($Kh9MC) goto Kh9eWjgx3e; 
        goto Kh9ldMhx3e; 
        Kh9eWjgx3e: 
        return rjson(1, $resdata['errmsg']); 
        goto Kh9x3d; 
        Kh9ldMhx3e:Kh9x3d: 
        unset($Kh9tIMC); 
        $Kh9tIMC = $resdata['data']; 
        $product = $Kh9tIMC; 
        $Kh9MC = !isset($product['price']); 
        $Kh9ME = (bool)$Kh9MC; 
        $Kh9MF = !$Kh9ME; 
        if ($Kh9MF) goto Kh9eWjgx3h; 
        goto Kh9ldMhx3h; 
        Kh9eWjgx3h: 
        $Kh9MD = !$product['price']; 
        $Kh9ME = $Kh9MC || $Kh9MD; 
        goto Kh9x3g; 
        Kh9ldMhx3h:Kh9x3g: 
        if ($Kh9ME) goto Kh9eWjgx3i; 
        goto Kh9ldMhx3i; 
        Kh9eWjgx3i: 
        return rjson(1, ''); 
        goto Kh9x3f; 
        Kh9ldMhx3i:Kh9x3f: 
        unset($Kh9tIMC); 
        $Kh9tIMC = floatval(preg_replace('/\D/', '', $product['name'])); 
        $real_amount = $Kh9tIMC; 
        $Kh9MC = (bool)$amount; 
        if ($Kh9MC) goto Kh9eWjgx3n; 
        goto Kh9ldMhx3n; 
        Kh9eWjgx3n: 
        $Kh9MC = $amount && $real_amount; 
        goto Kh9x3m; 
        Kh9ldMhx3n:Kh9x3m: 
        $Kh9ME = (bool)$Kh9MC; 
        if ($Kh9ME) goto Kh9eWjgx3l; 
        goto Kh9ldMhx3l; 
        Kh9eWjgx3l: 
        $Kh9MD = $amount != $real_amount; 
        $Kh9ME = $Kh9MC && $Kh9MD; 
        goto Kh9x3k; 
        Kh9ldMhx3l:Kh9x3k: 
        if ($Kh9ME) goto Kh9eWjgx3o; 
        goto Kh9ldMhx3o; 
        Kh9eWjgx3o: 
        return rjson(1, ''); 
        goto Kh9x3j; 
        Kh9ldMhx3o:Kh9x3j: 
        $Kh9MD = (bool)$price; 
        if ($Kh9MD) goto Kh9eWjgx3r; 
        goto Kh9ldMhx3r; 
        Kh9eWjgx3r: 
        $Kh9MC = $product['price'] > $price; 
        $Kh9MD = $price && $Kh9MC; 
        goto Kh9x3q; 
        Kh9ldMhx3r:Kh9x3q: 
        if ($Kh9MD) goto Kh9eWjgx3s; 
        goto Kh9ldMhx3s; 
        Kh9eWjgx3s: 
        return rjson(1, ''); 
        goto Kh9x3p; 
        Kh9ldMhx3s:Kh9x3p: 
        $Kh9MC = $product['limit_m_day'] > 0; 
        if ($Kh9MC) goto Kh9eWjgx3u; 
        goto Kh9ldMhx3u; 
        Kh9eWjgx3u: 
        $Kh9MC = $product['limit_m_num'] > 0; 
        if ($Kh9MC) goto Kh9eWjgx3w; 
        goto Kh9ldMhx3w; 
        Kh9eWjgx3w: 
        $Kh9vPvPvPMC = intval($product['limit_m_day']) * 86400; 
        $Kh9vPvPvPMD = time() - $Kh9vPvPvPMC; 
        unset($Kh9tIME); 
        $Kh9tIME = M('porder')->where(array('mobile' => $mobile, 'product_id' => $product['id'], 'create_time' => array('egt', $Kh9vPvPvPMD), 'status' => array('in', '1,2,3,4,8,9,10,11')))->count(); 
        $allcount = $Kh9tIME; 
        $Kh9MC = $allcount >= $product['limit_m_num']; 
        if ($Kh9MC) goto Kh9eWjgx3y; 
        goto Kh9ldMhx3y; 
        Kh9eWjgx3y: 
        $Kh9vPMC = "" . $product['limit_m_day']; 
        $Kh9vPMD = $Kh9vPMC . ""; 
        $Kh9vPME = $Kh9vPMD . $product['limit_m_num']; 
        $Kh9vPMF = $Kh9vPME . ""; 
        return rjson(1, $Kh9vPMF); 
        goto Kh9x3x; 
        Kh9ldMhx3y:Kh9x3x: 
        goto Kh9x3v; 
        Kh9ldMhx3w:Kh9x3v: 
        $Kh9MC = $product['limit_m_month_num'] > 0; 
        if ($Kh9MC) goto Kh9eWjgx41; 
        goto Kh9ldMhx41; 
        Kh9eWjgx41: 
        unset($Kh9tIMC); 
        $Kh9tIMC = M('porder')->where(array('mobile' => $mobile, 'product_id' => $product['id'], 'create_time' => array('between', array(strtotime(date('Y-m-01')), time())), 'status' => array('in', '1,2,3,4,8,9,10,11')))->count(); 
        $allcount = $Kh9tIMC; 
        $Kh9MC = $allcount >= $product['limit_m_month_num']; 
        if ($Kh9MC) goto Kh9eWjgx43; 
        goto Kh9ldMhx43; 
        Kh9eWjgx43: 
        $Kh9vPMC = "" . $product['limit_m_month_num']; 
        $Kh9vPMD = $Kh9vPMC . ""; 
        return rjson(1, $Kh9vPMD); 
        goto Kh9x42; 
        Kh9ldMhx43:Kh9x42: 
        goto Kh9x4z; 
        Kh9ldMhx41:Kh9x4z: 
        goto Kh9x3t; 
        Kh9ldMhx3u:Kh9x3t: 
        $Kh9MC = $product['plimit_one_porder'] > 0; 
        if ($Kh9MC) goto Kh9eWjgx45; 
        goto Kh9ldMhx45; 
        Kh9eWjgx45: 
        unset($Kh9tIMC); 
        $Kh9tIMC = M('porder')->where(array('mobile' => $mobile, 'status' => array('not in', array(4, 5, 6, 7, 12, 13)), 'is_del' => 0))->count(); 
        $shuliang = $Kh9tIMC; 
        $Kh9MC = $shuliang >= $product['plimit_one_porder']; 
        if ($Kh9MC) goto Kh9eWjgx47; 
        goto Kh9ldMhx47; 
        Kh9eWjgx47: 
        $Kh9vPMC = '</br>' . $shuliang; 
        $Kh9vPMD = $Kh9vPMC . '</br>'; 
        return rjson(1, $Kh9vPMD); 
        goto Kh9x46; 
        Kh9ldMhx47:Kh9x46: 
        goto Kh9x44; 
        Kh9ldMhx45:Kh9x44: 
        $Kh9MC = $product['start_time'] != ""; 
        $Kh9ME = (bool)$Kh9MC; 
        if ($Kh9ME) goto Kh9eWjgx4a; 
        goto Kh9ldMhx4a; 
        Kh9eWjgx4a: 
        $Kh9MD = $product['end_time'] != ""; 
        $Kh9ME = $Kh9MC && $Kh9MD; 
        goto Kh9x49; 
        Kh9ldMhx4a:Kh9x49: 
        if ($Kh9ME) goto Kh9eWjgx4b; 
        goto Kh9ldMhx4b; 
        Kh9eWjgx4b: 
        unset($Kh9tIMC); 
        $Kh9tIMC = time(); 
        $times = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = date('Y-m-d ', $times); 
        $Date = $Kh9tIMC; 
        $Kh9vPMC = $Date . " "; 
        $Kh9vPMD = $Kh9vPMC . $product['start_time']; 
        unset($Kh9tIME); 
        $Kh9tIME = strtotime($Kh9vPMD); 
        $Begin1 = $Kh9tIME; 
        $Kh9vPMC = $Date . " "; 
        $Kh9vPMD = $Kh9vPMC . $product['end_time']; 
        unset($Kh9tIME); 
        $Kh9tIME = strtotime($Kh9vPMD); 
        $Begin2 = $Kh9tIME; 
        $Kh9MC = $times < $Begin1; 
        $Kh9ME = (bool)$Kh9MC; 
        $Kh9MF = !$Kh9ME; 
        if ($Kh9MF) goto Kh9eWjgx4e; 
        goto Kh9ldMhx4e; 
        Kh9eWjgx4e: 
        $Kh9MD = $times > $Begin2; 
        $Kh9ME = $Kh9MC || $Kh9MD; 
        goto Kh9x4d; 
        Kh9ldMhx4e:Kh9x4d: 
        if ($Kh9ME) goto Kh9eWjgx4f; 
        goto Kh9ldMhx4f; 
        Kh9eWjgx4f: 
        $Kh9vPMC = '' . $product['start_time']; 
        $Kh9vPMD = $Kh9vPMC . '-'; 
        $Kh9vPME = $Kh9vPMD . $product['end_time']; 
        $Kh9vPMF = $Kh9vPME . ''; 
        return rjson(1, $Kh9vPMF); 
        goto Kh9x4c; 
        Kh9ldMhx4f:Kh9x4c: 
        goto Kh9x48; 
        Kh9ldMhx4b:Kh9x48: 
        unset($Kh9tIMC); 
        $Kh9tIMC = $product['id']; 
        $data['product_id'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = $product['cate_id']; 
        $data['product_cate'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = $customer_id; 
        $data['customer_id'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = $product['price']; 
        $data['total_price'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = time(); 
        $data['create_time'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = 1; 
        $data['status'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = $remark; 
        $data['remark'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = $mobile; 
        $data['mobile'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = $product['type']; 
        $data['type'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = $product['typec_id']; 
        $data['typec'] = $Kh9tIMC; 
        $Kh9MC = $product['yname'] . $product['type_name']; 
        unset($Kh9tIMD); 
        $Kh9tIMD = $Kh9MC; 
        $data['title'] = $Kh9tIMD; 
        unset($Kh9tIMC); 
        $Kh9tIMC = $product['yname']; 
        $data['product_name'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = $product['desc']; 
        $data['product_desc'] = $Kh9tIMC; 
        $Kh9MC = '' . $mobile; 
        $Kh9MD = $Kh9MC . ''; 
        $Kh9ME = $Kh9MD . $product['yname']; 
        $Kh9MF = $Kh9ME . $product['type_name']; 
        unset($Kh9tIMG); 
        $Kh9tIMG = $Kh9MF; 
        $data['body'] = $Kh9tIMG; 
        unset($Kh9tIMC); 
        $Kh9tIMC = $product['api_open']; 
        $data['api_open'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = $product['api_arr']; 
        $data['api_arr'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = -1; 
        $data['api_cur_index'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = $out_trade_num; 
        $data['out_trade_num'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = PayWay::PAY_WAY_NULL; 
        $data['pay_way'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = 0; 
        $data['api_cur_count'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = $client; 
        $data['client'] = $Kh9tIMC; 
        unset($Kh9tIMC); 
        $Kh9tIMC = $user['weixin_appid']; 
        $data['weixin_appid'] = $Kh9tIMC; 
        $Kh9MC = $product['delay_api'] > 0; 
        if ($Kh9MC) goto Kh9eWjgx4h; 
        goto Kh9ldMhx4h; 
        Kh9eWjgx4h: 
        $Kh9MD = $product['delay_api'] * 60; 
        $Kh9ME = $Kh9MD * 60; 
        $Kh9MF = time() + $Kh9ME; 
        $Kh9MG = $Kh9MF; 
        goto Kh9x4g; 
        Kh9ldMhx4h: 
        $Kh9MG = 0; 
        Kh9x4g: 
        unset($Kh9tIMH); 
        $Kh9tIMH = $Kh9MG; 
        $data['delay_time'] = $Kh9tIMH; 
        unset($Kh9tIMC); 
        $Kh9tIMC = $product['is_jiema']; 
        $data['is_jiema'] = $Kh9tIMC; 
        $Kh9MC = new self(); 
        unset($Kh9tIMD); 
        $Kh9tIMD = $Kh9MC; 
        $model = $Kh9tIMD; 
        $model->save($data); 
        unset($Kh9tIMC); 
        $Kh9tIMC = $model->id; 
        $aid = $Kh9tIMC; 
        $Kh9MD = !$Kh9tIMC; 
        if ($Kh9MD) goto Kh9eWjgx4j; 
        goto Kh9ldMhx4j; 
        Kh9eWjgx4j: 
        return rjson(1, ''); 
        goto Kh9x4i; 
        Kh9ldMhx4j:Kh9x4i: 
        return rjson(0, '', $model->id); 
    } ?>

Did this file decode correctly?

Original Code


    public static function createOrder($mobile, $product_id, $extparam, $customer_id, $client = 1, $remark = '', $out_trade_num = '', $amount = '', $price = '', $isfxh5 = 0)
    {
        unset($Kh9tIMC);
        $Kh9tIMC = trim($mobile);
        $mobile = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = M('product p')->join('product_type pt', 'p.type=pt.id')->where(array('p.id' => $product_id, 'p.added' => 1))->field('p.*,pt.typec_id')->find();
        $prd = $Kh9tIMC;
        $Kh9MC = !$prd;
        if ($Kh9MC) goto Kh9eWjgxq;
        goto Kh9ldMhxq;
        Kh9eWjgxq:
        return rjson(1, '(ID)');
        goto Kh9xp;
        Kh9ldMhxq:Kh9xp:
        $Kh9MD = (bool)$out_trade_num;
        if ($Kh9MD) goto Kh9eWjgxt;
        goto Kh9ldMhxt;
        Kh9eWjgxt:
        unset($Kh9tIMC);
        $Kh9tIMC = M('porder')->where(array('out_trade_num' => $out_trade_num, 'status' => array('gt', 1), 'customer_id' => $customer_id))->find();
        unset($Kh9tIME);
        $Kh9tIME = $Kh9tIMC;
        $reod = $Kh9tIME;
        $Kh9MD = $out_trade_num && $Kh9tIMC;
        goto Kh9xs;
        Kh9ldMhxt:Kh9xs:
        if ($Kh9MD) goto Kh9eWjgxu;
        goto Kh9ldMhxu;
        Kh9eWjgxu:
        return rjson(208, '', $reod['order_number']);
        goto Kh9xr;
        Kh9ldMhxu:Kh9xr:
        if (M('mobile_blacklist')->where(array('mobile' => $mobile, 'limit_time' => array('gt', time())))->find()) goto Kh9eWjgxw;
        goto Kh9ldMhxw;
        Kh9eWjgxw:
        return rjson(1, '-');
        goto Kh9xv;
        Kh9ldMhxw:Kh9xv:
        $Kh9MC = intval(C('LIMIT_ONE_PORDER')) > 0;
        if ($Kh9MC) goto Kh9eWjgxy;
        goto Kh9ldMhxy;
        Kh9eWjgxy:
        unset($Kh9tIMC);
        $Kh9tIMC = M('porder')->where(array('mobile' => $mobile, 'type' => array('in', array(1, 2)), 'status' => array('not in', array(4, 5, 6, 7, 12, 13)), 'is_del' => 0))->count();
        $shuliang = $Kh9tIMC;
        $Kh9MC = $shuliang >= intval(C('LIMIT_ONE_PORDER'));
        if ($Kh9MC) goto Kh9eWjgx11;
        goto Kh9ldMhx11;
        Kh9eWjgx11:
        $Kh9vPMC = '</br>' . $shuliang;
        $Kh9vPMD = $Kh9vPMC . '</br>';
        return rjson(1, $Kh9vPMD);
        goto Kh9xz;
        Kh9ldMhx11:Kh9xz:
        goto Kh9xx;
        Kh9ldMhxy:Kh9xx:
        $Kh9MC = intval(C('LIMITS_ONE_PORDER')) > 0;
        if ($Kh9MC) goto Kh9eWjgx13;
        goto Kh9ldMhx13;
        Kh9eWjgx13:
        unset($Kh9tIMC);
        $Kh9tIMC = M('porder')->where(array('mobile' => $mobile, 'type' => 3, 'status' => array('not in', array(4, 5, 6, 7, 12, 13)), 'is_del' => 0))->count();
        $shuliang = $Kh9tIMC;
        $Kh9MC = $shuliang >= intval(C('LIMITS_ONE_PORDER'));
        if ($Kh9MC) goto Kh9eWjgx15;
        goto Kh9ldMhx15;
        Kh9eWjgx15:
        $Kh9vPMC = '</br>' . $shuliang;
        $Kh9vPMD = $Kh9vPMC . '</br>';
        return rjson(1, $Kh9vPMD);
        goto Kh9x14;
        Kh9ldMhx15:Kh9x14:
        goto Kh9x12;
        Kh9ldMhx13:Kh9x12:
        $Kh9MC = C('LIMIT_ONE_CATE') == 1;
        if ($Kh9MC) goto Kh9eWjgx17;
        goto Kh9ldMhx17;
        Kh9eWjgx17:
        unset($Kh9tIMC);
        $Kh9tIMC = M('porder')->where(array('mobile' => $mobile, 'product_cate' => array('not in', array(0, $prd['cate_id'])), 'status' => array('not in', array(4, 5, 6, 7, 12, 13))))->count();
        $cates = $Kh9tIMC;
        $Kh9MC = $cates > 0;
        if ($Kh9MC) goto Kh9eWjgx19;
        goto Kh9ldMhx19;
        Kh9eWjgx19:
        return rjson(1, '!');
        goto Kh9x18;
        Kh9ldMhx19:Kh9x18:
        goto Kh9x16;
        Kh9ldMhx17:Kh9x16:
        unset($Kh9tIMC);
        $Kh9tIMC = '';
        $province = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = '';
        $city = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = M('customer')->where(array('id' => $customer_id))->find();
        $user = $Kh9tIMC;
        switch ($prd['typec_id']) {
            case 1:
            case 2:
                $Kh9MC = !is_numeric($mobile);
                $Kh9ME = (bool)$Kh9MC;
                $Kh9MF = !$Kh9ME;
                if ($Kh9MF) goto Kh9eWjgx1f;
                goto Kh9ldMhx1f;
                Kh9eWjgx1f:
                $Kh9MD = mb_strlen($mobile) != 11;
                $Kh9ME = $Kh9MC || $Kh9MD;
                goto Kh9x1e;
                Kh9ldMhx1f:Kh9x1e:
                if ($Kh9ME) goto Kh9eWjgx1g;
                goto Kh9ldMhx1g;
                Kh9eWjgx1g:
                return rjson(1, '');
                goto Kh9x1d;
                Kh9ldMhx1g:Kh9x1d:
                unset($Kh9tIMC);
                $Kh9tIMC = QCellCore($mobile);
                $guishu = $Kh9tIMC;
                $Kh9MC = $guishu['errno'] != 0;
                if ($Kh9MC) goto Kh9eWjgx1i;
                goto Kh9ldMhx1i;
                Kh9eWjgx1i:
                return rjson($guishu['errno'], $guishu['errmsg']);
                goto Kh9x1h;
                Kh9ldMhx1i:Kh9x1h:
                unset($Kh9tIMC);
                $Kh9tIMC = Product::Ispzhan($mobile, $customer_id, $guishu);
                $guishu = $Kh9tIMC;
                $Kh9vPMC = '%' . $guishu['data']['isp'];
                $Kh9vPMD = $Kh9vPMC . '%';
                unset($Kh9tIME);
                $Kh9tIME = array('like', $Kh9vPMD);
                $map['p.isp'] = $Kh9tIME;
                unset($Kh9tIMC);
                $Kh9tIMC = $guishu['data']['ispstr'];
                $data['isp'] = $Kh9tIMC;
                $Kh9MC = $guishu['data']['prov'] . $guishu['data']['city'];
                unset($Kh9tIMD);
                $Kh9tIMD = $Kh9MC;
                $data['guishu'] = $Kh9tIMD;
                unset($Kh9tIMC);
                $Kh9tIMC = $guishu['data']['prov'];
                $data['guishu_pro'] = $Kh9tIMC;
                unset($Kh9tIMC);
                $Kh9tIMC = $guishu['data']['city'];
                $data['guishu_city'] = $Kh9tIMC;
                unset($Kh9tIMC);
                $Kh9tIMC = $guishu['data']['prov'];
                $province = $Kh9tIMC;
                unset($Kh9tIMC);
                $Kh9tIMC = $guishu['data']['city'];
                $city = $Kh9tIMC;
                break 1;
            case 3:
                $Kh9MC = !isset($extparam['prov']);
                $Kh9ME = (bool)$Kh9MC;
                $Kh9MF = !$Kh9ME;
                if ($Kh9MF) goto Kh9eWjgx1m;
                goto Kh9ldMhx1m;
                Kh9eWjgx1m:
                $Kh9MD = !$extparam['prov'];
                $Kh9ME = $Kh9MC || $Kh9MD;
                goto Kh9x1l;
                Kh9ldMhx1m:Kh9x1l:
                if ($Kh9ME) goto Kh9eWjgx1n;
                goto Kh9ldMhx1n;
                Kh9eWjgx1n:
                return rjson(1, '');
                goto Kh9x1k;
                Kh9ldMhx1n:Kh9x1k:
                $Kh9vPvPvPMC = '%' . $extparam['prov'];
                $Kh9vPvPvPMD = $Kh9vPvPvPMC . '%';
                unset($Kh9tIME);
                $Kh9tIME = M('electricity_city')->where(array('city_name' => array('like', $Kh9vPvPvPMD), 'is_del' => 0))->find();
                $ecity = $Kh9tIME;
                $Kh9MC = !$ecity;
                if ($Kh9MC) goto Kh9eWjgx1p;
                goto Kh9ldMhx1p;
                Kh9eWjgx1p:
                return rjson(1, '');
                goto Kh9x1o;
                Kh9ldMhx1p:Kh9x1o:
                unset($Kh9tIMC);
                $Kh9tIMC = $ecity['city_name'];
                $data['isp'] = $Kh9tIMC;
                unset($Kh9tIMC);
                $Kh9tIMC = $ecity['city_name'];
                $data['guishu_pro'] = $Kh9tIMC;
                unset($Kh9tIMC);
                $Kh9tIMC = $ecity['city_name'];
                $province = $Kh9tIMC;
                if (isset($extparam['city'])) goto Kh9eWjgx1r;
                goto Kh9ldMhx1r;
                Kh9eWjgx1r:
                $Kh9MC = $extparam['city'];
                goto Kh9x1q;
                Kh9ldMhx1r:
                $Kh9MC = '';
                Kh9x1q:
                unset($Kh9tIMD);
                $Kh9tIMD = $Kh9MC;
                $city = $Kh9tIMD;
                $Kh9MC = (bool)isset($extparam['id_card_no']);
                if ($Kh9MC) goto Kh9eWjgx21;
                goto Kh9ldMhx21;
                Kh9eWjgx21:
                $Kh9MC = isset($extparam['id_card_no']) && $extparam['id_card_no'];
                goto Kh9x2z;
                Kh9ldMhx21:Kh9x2z:
                $Kh9MI = (bool)$Kh9MC;
                if ($Kh9MI) goto Kh9eWjgx1y;
                goto Kh9ldMhx1y;
                Kh9eWjgx1y:
                $Kh9MD = !isset($extparam['ytype']);
                $Kh9MF = (bool)$Kh9MD;
                $Kh9MK = !$Kh9MF;
                if ($Kh9MK) goto Kh9eWjgx1w;
                goto Kh9ldMhx1w;
                Kh9eWjgx1w:
                $Kh9ME = !$extparam['ytype'];
                $Kh9MF = $Kh9MD || $Kh9ME;
                goto Kh9x1v;
                Kh9ldMhx1w:Kh9x1v:
                $Kh9MH = (bool)$Kh9MF;
                $Kh9MJ = !$Kh9MH;
                if ($Kh9MJ) goto Kh9eWjgx1u;
                goto Kh9ldMhx1u;
                Kh9eWjgx1u:
                $Kh9MG = !in_array(intval($extparam['ytype']), array(1, 2, 3));
                $Kh9MH = $Kh9MF || $Kh9MG;
                goto Kh9x1t;
                Kh9ldMhx1u:Kh9x1t:
                $Kh9MI = $Kh9MC && $Kh9MH;
                goto Kh9x1x;
                Kh9ldMhx1y:Kh9x1x:
                if ($Kh9MI) goto Kh9eWjgx22;
                goto Kh9ldMhx22;
                Kh9eWjgx22:
                return rjson(1, '1/2/3', $ecity);
                goto Kh9x1s;
                Kh9ldMhx22:Kh9x1s:
                $Kh9MC = (bool)isset($extparam['id_card_no']);
                if ($Kh9MC) goto Kh9eWjgx27;
                goto Kh9ldMhx27;
                Kh9eWjgx27:
                $Kh9MC = isset($extparam['id_card_no']) && $extparam['id_card_no'];
                goto Kh9x26;
                Kh9ldMhx27:Kh9x26:
                $Kh9ME = (bool)$Kh9MC;
                if ($Kh9ME) goto Kh9eWjgx25;
                goto Kh9ldMhx25;
                Kh9eWjgx25:
                $Kh9MD = mb_strlen($extparam['id_card_no']) != 6;
                $Kh9ME = $Kh9MC && $Kh9MD;
                goto Kh9x24;
                Kh9ldMhx25:Kh9x24:
                if ($Kh9ME) goto Kh9eWjgx28;
                goto Kh9ldMhx28;
                Kh9eWjgx28:
                return rjson(1, '//', $ecity);
                goto Kh9x23;
                Kh9ldMhx28:Kh9x23:
                $Kh9MC = $ecity['need_ytype'] == 1;
                $Kh9ME = (bool)$Kh9MC;
                if ($Kh9ME) goto Kh9eWjgx2f;
                goto Kh9ldMhx2f;
                Kh9eWjgx2f:
                $Kh9MD = $ecity['force_ytype'] == 1;
                $Kh9ME = $Kh9MC && $Kh9MD;
                goto Kh9x2e;
                Kh9ldMhx2f:Kh9x2e:
                $Kh9MI = (bool)$Kh9ME;
                if ($Kh9MI) goto Kh9eWjgx2d;
                goto Kh9ldMhx2d;
                Kh9eWjgx2d:
                $Kh9MF = !isset($extparam['id_card_no']);
                $Kh9MH = (bool)$Kh9MF;
                $Kh9MJ = !$Kh9MH;
                if ($Kh9MJ) goto Kh9eWjgx2b;
                goto Kh9ldMhx2b;
                Kh9eWjgx2b:
                $Kh9MG = !$extparam['id_card_no'];
                $Kh9MH = $Kh9MF || $Kh9MG;
                goto Kh9x2a;
                Kh9ldMhx2b:Kh9x2a:
                $Kh9MI = $Kh9ME && $Kh9MH;
                goto Kh9x2c;
                Kh9ldMhx2d:Kh9x2c:
                if ($Kh9MI) goto Kh9eWjgx2g;
                goto Kh9ldMhx2g;
                Kh9eWjgx2g:
                return rjson(1, '//');
                goto Kh9x29;
                Kh9ldMhx2g:Kh9x29:
                $Kh9MC = $ecity['need_city'] == 1;
                $Kh9ME = (bool)$Kh9MC;
                if ($Kh9ME) goto Kh9eWjgx2n;
                goto Kh9ldMhx2n;
                Kh9eWjgx2n:
                $Kh9MD = $ecity['force_city'] == 1;
                $Kh9ME = $Kh9MC && $Kh9MD;
                goto Kh9x2m;
                Kh9ldMhx2n:Kh9x2m:
                $Kh9MI = (bool)$Kh9ME;
                if ($Kh9MI) goto Kh9eWjgx2l;
                goto Kh9ldMhx2l;
                Kh9eWjgx2l:
                $Kh9MF = !isset($extparam['city']);
                $Kh9MH = (bool)$Kh9MF;
                $Kh9MJ = !$Kh9MH;
                if ($Kh9MJ) goto Kh9eWjgx2j;
                goto Kh9ldMhx2j;
                Kh9eWjgx2j:
                $Kh9MG = !$extparam['city'];
                $Kh9MH = $Kh9MF || $Kh9MG;
                goto Kh9x2i;
                Kh9ldMhx2j:Kh9x2i:
                $Kh9MI = $Kh9ME && $Kh9MH;
                goto Kh9x2k;
                Kh9ldMhx2l:Kh9x2k:
                if ($Kh9MI) goto Kh9eWjgx2o;
                goto Kh9ldMhx2o;
                Kh9eWjgx2o:
                return rjson(1, '');
                goto Kh9x2h;
                Kh9ldMhx2o:Kh9x2h:
                if (isset($extparam['id_card_no'])) goto Kh9eWjgx2q;
                goto Kh9ldMhx2q;
                Kh9eWjgx2q:
                $Kh9MC = $extparam['id_card_no'];
                goto Kh9x2p;
                Kh9ldMhx2q:
                $Kh9MC = '';
                Kh9x2p:
                unset($Kh9tIMD);
                $Kh9tIMD = $Kh9MC;
                $data['param1'] = $Kh9tIMD;
                $Kh9ME = (bool)$data['param1'];
                if ($Kh9ME) goto Kh9eWjgx2u;
                goto Kh9ldMhx2u;
                Kh9eWjgx2u:
                if (isset($extparam['ytype'])) goto Kh9eWjgx2s;
                goto Kh9ldMhx2s;
                Kh9eWjgx2s:
                $Kh9MC = $extparam['ytype'];
                goto Kh9x2r;
                Kh9ldMhx2s:
                $Kh9MC = '';
                Kh9x2r:
                unset($Kh9tIMD);
                $Kh9tIMD = $Kh9MC;
                unset($Kh9tIMF);
                $Kh9tIMF = $Kh9tIMD;
                $data['param2'] = $Kh9tIMF;
                $Kh9ME = $data['param1'] && $Kh9tIMD;
                goto Kh9x2t;
                Kh9ldMhx2u:Kh9x2t:
                if (isset($extparam['city'])) goto Kh9eWjgx2w;
                goto Kh9ldMhx2w;
                Kh9eWjgx2w:
                $Kh9MC = $extparam['city'];
                goto Kh9x2v;
                Kh9ldMhx2w:
                $Kh9MC = '';
                Kh9x2v:
                unset($Kh9tIMD);
                $Kh9tIMD = $Kh9MC;
                $data['param3'] = $Kh9tIMD;
                unset($Kh9tIMC);
                $Kh9tIMC = $data['param3'];
                $data['guishu_city'] = $Kh9tIMC;
                break 1;
            default:
                if (isset($extparam['param1'])) goto Kh9eWjgx3z;
                goto Kh9ldMhx3z;
                Kh9eWjgx3z:
                $Kh9MC = $extparam['param1'];
                goto Kh9x2y;
                Kh9ldMhx3z:
                $Kh9MC = '';
                Kh9x2y:
                unset($Kh9tIMD);
                $Kh9tIMD = $Kh9MC;
                $data['param1'] = $Kh9tIMD;
                if (isset($extparam['param2'])) goto Kh9eWjgx32;
                goto Kh9ldMhx32;
                Kh9eWjgx32:
                $Kh9MC = $extparam['param2'];
                goto Kh9x31;
                Kh9ldMhx32:
                $Kh9MC = '';
                Kh9x31:
                unset($Kh9tIMD);
                $Kh9tIMD = $Kh9MC;
                $data['param2'] = $Kh9tIMD;
                if (isset($extparam['param3'])) goto Kh9eWjgx34;
                goto Kh9ldMhx34;
                Kh9eWjgx34:
                $Kh9MC = $extparam['param3'];
                goto Kh9x33;
                Kh9ldMhx34:
                $Kh9MC = '';
                Kh9x33:
                unset($Kh9tIMD);
                $Kh9tIMD = $Kh9MC;
                $data['param3'] = $Kh9tIMD;
                break 1;
        }
        unset($Kh9tIMC);
        $Kh9tIMC = $product_id;
        $map['p.id'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = 1;
        $map['p.added'] = $Kh9tIMC;
        $Kh9MD = (bool)in_array($client, array(Client::CLIENT_API, Client::CLIENT_AGA));
        $Kh9ME = !$Kh9MD;
        if ($Kh9ME) goto Kh9eWjgx37;
        goto Kh9ldMhx37;
        Kh9eWjgx37:
        $Kh9MC = $isfxh5 == 1;
        $Kh9MD = in_array($client, array(Client::CLIENT_API, Client::CLIENT_AGA)) || $Kh9MC;
        goto Kh9x36;
        Kh9ldMhx37:Kh9x36:
        if ($Kh9MD) goto Kh9eWjgx38;
        goto Kh9ldMhx38;
        Kh9eWjgx38:
        unset($Kh9tIMC);
        $Kh9tIMC = array('in', '1,3');
        $map['p.show_style'] = $Kh9tIMC;
        goto Kh9x35;
        Kh9ldMhx38:Kh9x35:
        $Kh9MD = (bool)in_array($client, array(Client::CLIENT_WX, Client::CLIENT_H5, Client::CLIENT_MP));
        if ($Kh9MD) goto Kh9eWjgx3b;
        goto Kh9ldMhx3b;
        Kh9eWjgx3b:
        unset($Kh9tIMC);
        $Kh9tIMC = 0;
        unset($Kh9tIME);
        $Kh9tIME = $Kh9tIMC;
        $isfxh5 = $Kh9tIME;
        $Kh9MD = in_array($client, array(Client::CLIENT_WX, Client::CLIENT_H5, Client::CLIENT_MP)) && $Kh9tIMC;
        goto Kh9x3a;
        Kh9ldMhx3b:Kh9x3a:
        if ($Kh9MD) goto Kh9eWjgx3c;
        goto Kh9ldMhx3c;
        Kh9eWjgx3c:
        unset($Kh9tIMC);
        $Kh9tIMC = array('in', '1,2');
        $map['p.show_style'] = $Kh9tIMC;
        goto Kh9x39;
        Kh9ldMhx3c:Kh9x39:
        unset($Kh9tIMC);
        $Kh9tIMC = Product::getProduct($map, $user['id'], $province, $city, $mobile);
        $resdata = $Kh9tIMC;
        $Kh9MC = $resdata['errno'] != 0;
        if ($Kh9MC) goto Kh9eWjgx3e;
        goto Kh9ldMhx3e;
        Kh9eWjgx3e:
        return rjson(1, $resdata['errmsg']);
        goto Kh9x3d;
        Kh9ldMhx3e:Kh9x3d:
        unset($Kh9tIMC);
        $Kh9tIMC = $resdata['data'];
        $product = $Kh9tIMC;
        $Kh9MC = !isset($product['price']);
        $Kh9ME = (bool)$Kh9MC;
        $Kh9MF = !$Kh9ME;
        if ($Kh9MF) goto Kh9eWjgx3h;
        goto Kh9ldMhx3h;
        Kh9eWjgx3h:
        $Kh9MD = !$product['price'];
        $Kh9ME = $Kh9MC || $Kh9MD;
        goto Kh9x3g;
        Kh9ldMhx3h:Kh9x3g:
        if ($Kh9ME) goto Kh9eWjgx3i;
        goto Kh9ldMhx3i;
        Kh9eWjgx3i:
        return rjson(1, '');
        goto Kh9x3f;
        Kh9ldMhx3i:Kh9x3f:
        unset($Kh9tIMC);
        $Kh9tIMC = floatval(preg_replace('/\\D/', '', $product['name']));
        $real_amount = $Kh9tIMC;
        $Kh9MC = (bool)$amount;
        if ($Kh9MC) goto Kh9eWjgx3n;
        goto Kh9ldMhx3n;
        Kh9eWjgx3n:
        $Kh9MC = $amount && $real_amount;
        goto Kh9x3m;
        Kh9ldMhx3n:Kh9x3m:
        $Kh9ME = (bool)$Kh9MC;
        if ($Kh9ME) goto Kh9eWjgx3l;
        goto Kh9ldMhx3l;
        Kh9eWjgx3l:
        $Kh9MD = $amount != $real_amount;
        $Kh9ME = $Kh9MC && $Kh9MD;
        goto Kh9x3k;
        Kh9ldMhx3l:Kh9x3k:
        if ($Kh9ME) goto Kh9eWjgx3o;
        goto Kh9ldMhx3o;
        Kh9eWjgx3o:
        return rjson(1, '');
        goto Kh9x3j;
        Kh9ldMhx3o:Kh9x3j:
        $Kh9MD = (bool)$price;
        if ($Kh9MD) goto Kh9eWjgx3r;
        goto Kh9ldMhx3r;
        Kh9eWjgx3r:
        $Kh9MC = $product['price'] > $price;
        $Kh9MD = $price && $Kh9MC;
        goto Kh9x3q;
        Kh9ldMhx3r:Kh9x3q:
        if ($Kh9MD) goto Kh9eWjgx3s;
        goto Kh9ldMhx3s;
        Kh9eWjgx3s:
        return rjson(1, '');
        goto Kh9x3p;
        Kh9ldMhx3s:Kh9x3p:
        $Kh9MC = $product['limit_m_day'] > 0;
        if ($Kh9MC) goto Kh9eWjgx3u;
        goto Kh9ldMhx3u;
        Kh9eWjgx3u:
        $Kh9MC = $product['limit_m_num'] > 0;
        if ($Kh9MC) goto Kh9eWjgx3w;
        goto Kh9ldMhx3w;
        Kh9eWjgx3w:
        $Kh9vPvPvPMC = intval($product['limit_m_day']) * 86400;
        $Kh9vPvPvPMD = time() - $Kh9vPvPvPMC;
        unset($Kh9tIME);
        $Kh9tIME = M('porder')->where(array('mobile' => $mobile, 'product_id' => $product['id'], 'create_time' => array('egt', $Kh9vPvPvPMD), 'status' => array('in', '1,2,3,4,8,9,10,11')))->count();
        $allcount = $Kh9tIME;
        $Kh9MC = $allcount >= $product['limit_m_num'];
        if ($Kh9MC) goto Kh9eWjgx3y;
        goto Kh9ldMhx3y;
        Kh9eWjgx3y:
        $Kh9vPMC = "" . $product['limit_m_day'];
        $Kh9vPMD = $Kh9vPMC . "";
        $Kh9vPME = $Kh9vPMD . $product['limit_m_num'];
        $Kh9vPMF = $Kh9vPME . "";
        return rjson(1, $Kh9vPMF);
        goto Kh9x3x;
        Kh9ldMhx3y:Kh9x3x:
        goto Kh9x3v;
        Kh9ldMhx3w:Kh9x3v:
        $Kh9MC = $product['limit_m_month_num'] > 0;
        if ($Kh9MC) goto Kh9eWjgx41;
        goto Kh9ldMhx41;
        Kh9eWjgx41:
        unset($Kh9tIMC);
        $Kh9tIMC = M('porder')->where(array('mobile' => $mobile, 'product_id' => $product['id'], 'create_time' => array('between', array(strtotime(date('Y-m-01')), time())), 'status' => array('in', '1,2,3,4,8,9,10,11')))->count();
        $allcount = $Kh9tIMC;
        $Kh9MC = $allcount >= $product['limit_m_month_num'];
        if ($Kh9MC) goto Kh9eWjgx43;
        goto Kh9ldMhx43;
        Kh9eWjgx43:
        $Kh9vPMC = "" . $product['limit_m_month_num'];
        $Kh9vPMD = $Kh9vPMC . "";
        return rjson(1, $Kh9vPMD);
        goto Kh9x42;
        Kh9ldMhx43:Kh9x42:
        goto Kh9x4z;
        Kh9ldMhx41:Kh9x4z:
        goto Kh9x3t;
        Kh9ldMhx3u:Kh9x3t:
        $Kh9MC = $product['plimit_one_porder'] > 0;
        if ($Kh9MC) goto Kh9eWjgx45;
        goto Kh9ldMhx45;
        Kh9eWjgx45:
        unset($Kh9tIMC);
        $Kh9tIMC = M('porder')->where(array('mobile' => $mobile, 'status' => array('not in', array(4, 5, 6, 7, 12, 13)), 'is_del' => 0))->count();
        $shuliang = $Kh9tIMC;
        $Kh9MC = $shuliang >= $product['plimit_one_porder'];
        if ($Kh9MC) goto Kh9eWjgx47;
        goto Kh9ldMhx47;
        Kh9eWjgx47:
        $Kh9vPMC = '</br>' . $shuliang;
        $Kh9vPMD = $Kh9vPMC . '</br>';
        return rjson(1, $Kh9vPMD);
        goto Kh9x46;
        Kh9ldMhx47:Kh9x46:
        goto Kh9x44;
        Kh9ldMhx45:Kh9x44:
        $Kh9MC = $product['start_time'] != "";
        $Kh9ME = (bool)$Kh9MC;
        if ($Kh9ME) goto Kh9eWjgx4a;
        goto Kh9ldMhx4a;
        Kh9eWjgx4a:
        $Kh9MD = $product['end_time'] != "";
        $Kh9ME = $Kh9MC && $Kh9MD;
        goto Kh9x49;
        Kh9ldMhx4a:Kh9x49:
        if ($Kh9ME) goto Kh9eWjgx4b;
        goto Kh9ldMhx4b;
        Kh9eWjgx4b:
        unset($Kh9tIMC);
        $Kh9tIMC = time();
        $times = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = date('Y-m-d ', $times);
        $Date = $Kh9tIMC;
        $Kh9vPMC = $Date . " ";
        $Kh9vPMD = $Kh9vPMC . $product['start_time'];
        unset($Kh9tIME);
        $Kh9tIME = strtotime($Kh9vPMD);
        $Begin1 = $Kh9tIME;
        $Kh9vPMC = $Date . " ";
        $Kh9vPMD = $Kh9vPMC . $product['end_time'];
        unset($Kh9tIME);
        $Kh9tIME = strtotime($Kh9vPMD);
        $Begin2 = $Kh9tIME;
        $Kh9MC = $times < $Begin1;
        $Kh9ME = (bool)$Kh9MC;
        $Kh9MF = !$Kh9ME;
        if ($Kh9MF) goto Kh9eWjgx4e;
        goto Kh9ldMhx4e;
        Kh9eWjgx4e:
        $Kh9MD = $times > $Begin2;
        $Kh9ME = $Kh9MC || $Kh9MD;
        goto Kh9x4d;
        Kh9ldMhx4e:Kh9x4d:
        if ($Kh9ME) goto Kh9eWjgx4f;
        goto Kh9ldMhx4f;
        Kh9eWjgx4f:
        $Kh9vPMC = '' . $product['start_time'];
        $Kh9vPMD = $Kh9vPMC . '-';
        $Kh9vPME = $Kh9vPMD . $product['end_time'];
        $Kh9vPMF = $Kh9vPME . '';
        return rjson(1, $Kh9vPMF);
        goto Kh9x4c;
        Kh9ldMhx4f:Kh9x4c:
        goto Kh9x48;
        Kh9ldMhx4b:Kh9x48:
        unset($Kh9tIMC);
        $Kh9tIMC = $product['id'];
        $data['product_id'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = $product['cate_id'];
        $data['product_cate'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = $customer_id;
        $data['customer_id'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = $product['price'];
        $data['total_price'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = time();
        $data['create_time'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = 1;
        $data['status'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = $remark;
        $data['remark'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = $mobile;
        $data['mobile'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = $product['type'];
        $data['type'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = $product['typec_id'];
        $data['typec'] = $Kh9tIMC;
        $Kh9MC = $product['yname'] . $product['type_name'];
        unset($Kh9tIMD);
        $Kh9tIMD = $Kh9MC;
        $data['title'] = $Kh9tIMD;
        unset($Kh9tIMC);
        $Kh9tIMC = $product['yname'];
        $data['product_name'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = $product['desc'];
        $data['product_desc'] = $Kh9tIMC;
        $Kh9MC = '' . $mobile;
        $Kh9MD = $Kh9MC . '';
        $Kh9ME = $Kh9MD . $product['yname'];
        $Kh9MF = $Kh9ME . $product['type_name'];
        unset($Kh9tIMG);
        $Kh9tIMG = $Kh9MF;
        $data['body'] = $Kh9tIMG;
        unset($Kh9tIMC);
        $Kh9tIMC = $product['api_open'];
        $data['api_open'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = $product['api_arr'];
        $data['api_arr'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = -1;
        $data['api_cur_index'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = $out_trade_num;
        $data['out_trade_num'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = PayWay::PAY_WAY_NULL;
        $data['pay_way'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = 0;
        $data['api_cur_count'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = $client;
        $data['client'] = $Kh9tIMC;
        unset($Kh9tIMC);
        $Kh9tIMC = $user['weixin_appid'];
        $data['weixin_appid'] = $Kh9tIMC;
        $Kh9MC = $product['delay_api'] > 0;
        if ($Kh9MC) goto Kh9eWjgx4h;
        goto Kh9ldMhx4h;
        Kh9eWjgx4h:
        $Kh9MD = $product['delay_api'] * 60;
        $Kh9ME = $Kh9MD * 60;
        $Kh9MF = time() + $Kh9ME;
        $Kh9MG = $Kh9MF;
        goto Kh9x4g;
        Kh9ldMhx4h:
        $Kh9MG = 0;
        Kh9x4g:
        unset($Kh9tIMH);
        $Kh9tIMH = $Kh9MG;
        $data['delay_time'] = $Kh9tIMH;
        unset($Kh9tIMC);
        $Kh9tIMC = $product['is_jiema'];
        $data['is_jiema'] = $Kh9tIMC;
        $Kh9MC = new self();
        unset($Kh9tIMD);
        $Kh9tIMD = $Kh9MC;
        $model = $Kh9tIMD;
        $model->save($data);
        unset($Kh9tIMC);
        $Kh9tIMC = $model->id;
        $aid = $Kh9tIMC;
        $Kh9MD = !$Kh9tIMC;
        if ($Kh9MD) goto Kh9eWjgx4j;
        goto Kh9ldMhx4j;
        Kh9eWjgx4j:
        return rjson(1, '');
        goto Kh9x4i;
        Kh9ldMhx4j:Kh9x4i:
        return rjson(0, '', $model->id);
    }

Function Calls

None

Variables

None

Stats

MD5 fd40cbd3e9ddd10c33e1301d8df95718
Eval Count 0
Decode Time 110 ms