xialei 1 год назад
Родитель
Сommit
b7fffbebdf
2 измененных файлов с 12 добавлено и 0 удалено
  1. 9 0
      app/controller/api/store/service/Huafei.php
  2. 3 0
      route/api.php

+ 9 - 0
app/controller/api/store/service/Huafei.php

@@ -108,6 +108,15 @@ class Huafei extends BaseController
108 108
 	}
109 109
 
110 110
 
111
+	//充值话费推送补发
112
+	public function bufa(){
113
+		$order_no = $this->request->param('order_no');
114
+		$order_data = Db::name('order_huafei_hf') -> where('order_no', $order_no)->find();
115
+		return $this->pushHf($order_data['uid'], $order_data['order_no'], $order_data['mobile'], $order_data['pay_price']);
116
+	}
117
+
118
+
119
+
111 120
     //充值话费推送
112 121
     public function recharge(){
113 122
 		$uid = $this->request->uid();

+ 3 - 0
route/api.php

@@ -1041,6 +1041,9 @@ Route::group('api/', function () {
1041 1041
         Route::post('record', '/record');
1042 1042
     })->prefix('api.store.service.Huafei')->middleware(\app\common\middleware\UserTokenMiddleware::class, false);
1043 1043
 
1044
+    //话费充值补发
1045
+    Route::post('huafei/bufa', 'api.store.service.Huafei/bufa');
1046
+
1044 1047
     //话费充值回调通知
1045 1048
     Route::get('huafei/notify', 'api.store.service.Huafei/notify');
1046 1049