|
@@ -4,7 +4,6 @@ namespace app\index\controller;
|
|
|
|
|
|
use think\Controller;
|
|
|
use think\Db;
|
|
|
-use think\Request;
|
|
|
|
|
|
class Index extends Controller
|
|
|
{
|
|
@@ -16,6 +15,7 @@ class Index extends Controller
|
|
|
//试课 支付成功页
|
|
|
public function paysuccess(){
|
|
|
$out_trade_no = input('out_trade_no','');
|
|
|
+ $lang = input('lang','en');
|
|
|
|
|
|
$info = Db::name('trylesson_order')->alias('order')
|
|
|
->field('order.order_no,order.order_amount,
|
|
@@ -27,8 +27,27 @@ class Index extends Controller
|
|
|
|
|
|
->where('order.order_no',$out_trade_no)->find();
|
|
|
|
|
|
+ $info['paystatus'] = __('Pay Success');
|
|
|
+ $info['nowtime'] = date('n月d,Y H:i');
|
|
|
+
|
|
|
+ if($lang == 'en'){
|
|
|
+ $info['name'] = $info['name_en'];
|
|
|
+ $info['nowtime'] = date('M d,Y H:i');
|
|
|
+ }
|
|
|
+
|
|
|
$this->assign('info',$info);
|
|
|
- $this->assign('nowtime',date('Y-m-d H:i'));
|
|
|
+
|
|
|
+ $showtitle = [
|
|
|
+ 'Order_No' => __('Order No'),
|
|
|
+ 'User_Name' => __('User Name'),
|
|
|
+ 'Mobile' => __('Mobile'),
|
|
|
+ 'Status' => __('Status'),
|
|
|
+ 'Pay_Amount'=> __('Pay Amount'),
|
|
|
+ 'Info' => __('Info'),
|
|
|
+ 'Pay_Time' => __('Pay Time'),
|
|
|
+ 'bookingnow' => __('Booking Now'),
|
|
|
+ ];
|
|
|
+ $this->assign('showtitle',$showtitle);
|
|
|
|
|
|
return $this->fetch();
|
|
|
}
|
|
@@ -36,6 +55,7 @@ class Index extends Controller
|
|
|
//售课 支付成功页
|
|
|
public function lesson_paysuccess(){
|
|
|
$out_trade_no = input('out_trade_no','');
|
|
|
+ $lang = input('lang','en');
|
|
|
|
|
|
$info = Db::name('lesson_order')->alias('order')
|
|
|
->field('order.order_no,order.order_amount,
|
|
@@ -47,8 +67,28 @@ class Index extends Controller
|
|
|
|
|
|
->where('order.order_no',$out_trade_no)->find();
|
|
|
|
|
|
+ $info['paystatus'] = __('Pay Success');
|
|
|
+ $info['nowtime'] = date('n月d,Y H:i');
|
|
|
+
|
|
|
+ if($lang == 'en'){
|
|
|
+ $info['name'] = $info['name_en'];
|
|
|
+ $info['nowtime'] = date('M d,Y H:i');
|
|
|
+ }
|
|
|
+
|
|
|
$this->assign('info',$info);
|
|
|
- $this->assign('nowtime',date('Y-m-d H:i'));
|
|
|
+
|
|
|
+ $showtitle = [
|
|
|
+ 'Order_No' => __('Order No'),
|
|
|
+ 'User_Name' => __('User Name'),
|
|
|
+ 'Mobile' => __('Mobile'),
|
|
|
+ 'Status' => __('Status'),
|
|
|
+ 'Pay_Amount'=> __('Pay Amount'),
|
|
|
+ 'Info' => __('Info'),
|
|
|
+ 'Pay_Time' => __('Pay Time'),
|
|
|
+ 'bookingnow' => __('Booking Now'),
|
|
|
+ 'ok' => __('OK'),
|
|
|
+ ];
|
|
|
+ $this->assign('showtitle',$showtitle);
|
|
|
|
|
|
return $this->fetch();
|
|
|
}
|
|
@@ -56,6 +96,7 @@ class Index extends Controller
|
|
|
//套餐 支付成功页
|
|
|
public function package_paysuccess(){
|
|
|
$out_trade_no = input('out_trade_no','');
|
|
|
+ $lang = input('lang','en');
|
|
|
|
|
|
$info = Db::name('package_order')->alias('order')
|
|
|
->field('order.order_no,order.price as order_amount,
|
|
@@ -67,8 +108,28 @@ class Index extends Controller
|
|
|
|
|
|
->where('order.order_no',$out_trade_no)->find();
|
|
|
|
|
|
+ $info['paystatus'] = __('Pay Success');
|
|
|
+ $info['nowtime'] = date('n月d,Y H:i');
|
|
|
+
|
|
|
+ if($lang == 'en'){
|
|
|
+ $info['name'] = $info['name_en'];
|
|
|
+ $info['nowtime'] = date('M d,Y H:i');
|
|
|
+ }
|
|
|
+
|
|
|
$this->assign('info',$info);
|
|
|
- $this->assign('nowtime',date('Y-m-d H:i'));
|
|
|
+
|
|
|
+ $showtitle = [
|
|
|
+ 'Order_No' => __('Order No'),
|
|
|
+ 'User_Name' => __('User Name'),
|
|
|
+ 'Mobile' => __('Mobile'),
|
|
|
+ 'Status' => __('Status'),
|
|
|
+ 'Pay_Amount'=> __('Pay Amount'),
|
|
|
+ 'Info' => __('Info'),
|
|
|
+ 'Pay_Time' => __('Pay Time'),
|
|
|
+ 'bookingnow' => __('Booking Now'),
|
|
|
+ 'ok' => __('OK'),
|
|
|
+ ];
|
|
|
+ $this->assign('showtitle',$showtitle);
|
|
|
|
|
|
return $this->fetch();
|
|
|
}
|