这是我的blade.PHP那个问题
@extends(MyHelper::siteTheme('billing_waiting'))
@section('contentBlock')
<h3>
{{trans('site.blockchain.send')}} <span style="color:red">{{ $form_data['amount']}} </span>BTC <br>
{{trans('site.blockchain.to')}} <span style="color:red">{{ $form_data['sendto']}} </span>
</h3>
<br>
<br>
<h2>{{trans('site.blockchain.scan')}}</h2>
{!! $form_data['code'] !!}
<br>
<br>
<h3 style="color: red;">** {{trans('site.blockchain.confirmations')}}</h3>
@endsection
这是我的回电文件
if ($order->btc_amo==$value_in_btc && $secret=="ABIR" && $confirmations >= 1){
$savedata['confirmation'] = $trx_hash;
$savedata['gateway_response'] = json_encode($request->all());
$savedata['status'] = 'paid';}
现在我想让blade.PHP在回调返回成功时返回特定页面
意味着何时
($order->btc_amo==$value_in_btc && $secret==”ABIR” && $confirmations >= 1)
return to success page
提前致谢
编辑:
这是我的完整回调文件
$track = $request->input('invoice_id');
$secret = $request->input('secret');
$value = $request->input('value');
$confirmations = $request->input('confirmations');
$value_in_btc = $value / 100000000;
$trx_hash = $request->input('transaction_hash');
$order = Transaction::where('hash',$track)->first();
if($order->status == 0){
if ($order->btc_amo==$value_in_btc && $secret=="ABIR" && $confirmations >= 1){
$savedata['confirmation'] = $trx_hash;
$savedata['gateway_response'] = json_encode($request->all());
$savedata['status'] = 'paid';
//Update product sales
$this->salesupdate($order->product_id);
//Save order
$this->neworder($order->user_id,$order->product_id,$order->price,$order->hash,$order->id);
//Save user transaction
$this->newusertransaction($order->user_id,$order->price);
//Credit seller
$this->creditseller($order->product_id);
// add balance to user
$this->addbalancetouser($order->user_id,$order->price);
//Update order
$order->update($savedata);
}
}
解决方法:
你的问题有点不清楚.您可以使用重定向(‘url’)重新映射到另一个页面,如果需要发送一些数据,可以使用with().所以就在回调结束时你这样做,
return redirect(‘your-page-url’)
你可以在docs找到更多信息
希望这可以帮助!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。