$res['本次账单可抵扣积分'], 'keyong_jine'=>$res['本次账单可抵扣金额'], ]; } public static function Get($url) { $response = Http::get($url); if ($response->successful()) { $res = $response->json(); if ($res['code'] == "200") { return $res; } else { throw new HttpResponseException(\Yz::echoError1("查询用户积分预存款失败:" . $res['msg'])); } } else { $status = $response->status(); // 获取响应体作为字符串 $body = $response->body(); throw new HttpResponseException(\Yz::echoError1("查询用户积分预存款失败,status:" . $status . "body:" . $body)); } } }