This commit is contained in:
2020-10-16 16:41:08 +08:00
parent 88511c7ab2
commit d43f4b4974
10 changed files with 173 additions and 97 deletions

View File

@@ -2,16 +2,20 @@
namespace App\Api\Controllers;
use App\Exceptions\ApiException;
use Illuminate\Http\Request;
use XuanChen\UnionPay\UnionPay;
use Illuminate\Support\Facades\Http;
class UnionPayController extends Controller
{
public function index(Request $request)
{
$response = Http::post();
die();
$a = '0.1';
$b = '0.1';
dump($a > $b);
$action = new UnionPay($request->all());
// $sign = $action->getSign(false);
$sign = 'd8e5bf46d0d9f1da702170c2e141d85cf3ca785106886dbfedb3310ee9ce2ca3f18a2e6c179ec9908fc4f41d05df463634106918bdbefc63b8f199c7d2f3b0d45510b4dd6ccdf4549e11a8551a5098b14c01fdaa5840a4608f462fdafdc14b8f2a35471da315d8245a4ef6281b6e04bd22d5a266500a6caf6e5203202c37111d';