This commit is contained in:
Hankin 2026-04-23 17:47:38 +08:00
parent 36b75f394d
commit d62ec669d1

View File

@ -621,7 +621,6 @@ class EarningController extends Controller
"amount" => (int) ($withdraw->real_value * 100), "amount" => (int) ($withdraw->real_value * 100),
"remark" => "用户提现", "remark" => "用户提现",
]; ];
Log::info($data);
$token = $request->bearerToken(); $token = $request->bearerToken();
$header = [ $header = [
'Authorization' => "Bearer " . $token, 'Authorization' => "Bearer " . $token,
@ -644,8 +643,10 @@ class EarningController extends Controller
} else { } else {
throw new Exception("提现失败"); throw new Exception("提现失败");
} }
$package_info = $res["data"]["data"]["package_info"];
$withdraw->package_info = $package_info;
DB::commit(); DB::commit();
return $this->success('ok', ['status' => 1, "package_info" => $res["data"]["data"]["package_info"], "app_id" => "wx36c72a00f1b2be64", "mch_id" => "1581903621"]); return $this->success('ok', ['status' => 1, "package_info" => $package_info, "app_id" => "wx36c72a00f1b2be64", "mch_id" => "1581903621"]);
// //修改账号状态 // //修改账号状态
// $earning_account->decrement('frozen_withdraw', $amount); // $earning_account->decrement('frozen_withdraw', $amount);