Browse Source

from type

zz 5 years ago
parent
commit
e571f24a64
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Wap/Pay/OrdersController.php

+ 1 - 1
app/Http/Controllers/Wap/Pay/OrdersController.php

@@ -130,7 +130,7 @@ class OrdersController extends Controller
         $openid = $request->has('openid') ? $request->get('openid') : '';
         $bid = $request->has('bid') ? $request->get('bid') : 0;
         $hash_bid = $bid;
-        $fromtype = $request->has('fromtype') ? $request->get('fromtype') : $request->get('from');
+        $fromtype = $request->has('fromtype') ? $request->get('fromtype') : $request->get('from','main');
 
         if ($fromtype && strlen($fromtype) > 50) {
             try {