更换目录
This commit is contained in:
@@ -36,7 +36,7 @@ class IndexController extends AdminController
|
|||||||
$grid = new Grid(new UnionpayLog);
|
$grid = new Grid(new UnionpayLog);
|
||||||
|
|
||||||
$grid->disableActions();
|
$grid->disableActions();
|
||||||
|
$grid->disableCreateButton();
|
||||||
$grid->model()->orderBy('id', 'desc');
|
$grid->model()->orderBy('id', 'desc');
|
||||||
|
|
||||||
$grid->filter(function ($filter) {
|
$grid->filter(function ($filter) {
|
||||||
|
|||||||
@@ -46,9 +46,9 @@
|
|||||||
"App\\": "app/",
|
"App\\": "app/",
|
||||||
"RuLong\\Bonus\\": "packages/bonus/src/",
|
"RuLong\\Bonus\\": "packages/bonus/src/",
|
||||||
"RuLong\\Identity\\": "packages/identity/src/",
|
"RuLong\\Identity\\": "packages/identity/src/",
|
||||||
"XuanChen\\Coupon\\": "packages/coupon/src/",
|
"XuanChen\\Coupon\\": "packages/xuanchen/coupon/src/",
|
||||||
"XuanChen\\UnionPay\\": "packages/unionpay/src/",
|
"XuanChen\\UnionPay\\": "packages/xuanchen/unionpay/src/",
|
||||||
"XuanChen\\Sinopec\\": "packages/sinopec/src/"
|
"XuanChen\\Sinopec\\": "packages/xuanchen/sinopec/src/"
|
||||||
},
|
},
|
||||||
"classmap": [
|
"classmap": [
|
||||||
"database/seeds",
|
"database/seeds",
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.1.3",
|
"php": ">=7.1.3",
|
||||||
"laravel/framework": "*"
|
"../../../vendor/laravel/framework": "*"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0": {
|
"psr-0": {
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.1.3",
|
"php": ">=7.1.3",
|
||||||
"laravel/framework": "*"
|
"../../../vendor/laravel/framework": "*"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0": {
|
"psr-0": {
|
||||||
@@ -103,7 +103,7 @@ return [
|
|||||||
"msg_type",
|
"msg_type",
|
||||||
"msg_txn_code",
|
"msg_txn_code",
|
||||||
"msg_crrltn_id",
|
"msg_crrltn_id",
|
||||||
"msg_flg",
|
// "msg_flg",
|
||||||
"msg_sender",
|
"msg_sender",
|
||||||
"msg_time",
|
"msg_time",
|
||||||
"msg_ver",
|
"msg_ver",
|
||||||
@@ -115,7 +115,7 @@ return [
|
|||||||
"msg_type",
|
"msg_type",
|
||||||
"msg_txn_code",
|
"msg_txn_code",
|
||||||
"msg_crrltn_id",
|
"msg_crrltn_id",
|
||||||
"msg_flg",
|
// "msg_flg",
|
||||||
"msg_sender",
|
"msg_sender",
|
||||||
"msg_time",
|
"msg_time",
|
||||||
"msg_sys_sn",
|
"msg_sys_sn",
|
||||||
@@ -128,7 +128,7 @@ return [
|
|||||||
"msg_type",
|
"msg_type",
|
||||||
"msg_txn_code",
|
"msg_txn_code",
|
||||||
"msg_crrltn_id",
|
"msg_crrltn_id",
|
||||||
"msg_flg",
|
// "msg_flg",
|
||||||
"msg_sender",
|
"msg_sender",
|
||||||
"msg_time",
|
"msg_time",
|
||||||
"msg_sys_sn",
|
"msg_sys_sn",
|
||||||
@@ -140,7 +140,7 @@ return [
|
|||||||
"msg_type",
|
"msg_type",
|
||||||
"msg_txn_code",
|
"msg_txn_code",
|
||||||
"msg_crrltn_id",
|
"msg_crrltn_id",
|
||||||
"msg_flg",
|
// "msg_flg",
|
||||||
"msg_sender",
|
"msg_sender",
|
||||||
"msg_time",
|
"msg_time",
|
||||||
"msg_sys_sn",
|
"msg_sys_sn",
|
||||||
@@ -2,10 +2,7 @@
|
|||||||
|
|
||||||
namespace XuanChen\UnionPay\Action;
|
namespace XuanChen\UnionPay\Action;
|
||||||
|
|
||||||
use App\Exceptions\ApiException;
|
|
||||||
use App\Exceptions\ApiUnionpayException;
|
|
||||||
use App\Models\Log as LogModel;
|
use App\Models\Log as LogModel;
|
||||||
use Illuminate\Http\Request;
|
|
||||||
|
|
||||||
class Init
|
class Init
|
||||||
{
|
{
|
||||||
@@ -13,6 +13,7 @@ class ServiceProvider extends LaravelServiceProvider
|
|||||||
*/
|
*/
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
|
info('323');
|
||||||
if ($this->app->runningInConsole()) {
|
if ($this->app->runningInConsole()) {
|
||||||
$this->publishes([__DIR__ . '/../config/unionpay.php' => config_path('unionpay.php')]);
|
$this->publishes([__DIR__ . '/../config/unionpay.php' => config_path('unionpay.php')]);
|
||||||
}
|
}
|
||||||
@@ -3,13 +3,10 @@
|
|||||||
namespace XuanChen\UnionPay;
|
namespace XuanChen\UnionPay;
|
||||||
|
|
||||||
use App\Models\UnionpayLog;
|
use App\Models\UnionpayLog;
|
||||||
use App\Models\User;
|
|
||||||
use XuanChen\UnionPay\Action\Init;
|
use XuanChen\UnionPay\Action\Init;
|
||||||
use XuanChen\Coupon\Coupon;
|
|
||||||
use XuanChen\UnionPay\Action\Query;
|
use XuanChen\UnionPay\Action\Query;
|
||||||
use XuanChen\UnionPay\Action\Redemption;
|
use XuanChen\UnionPay\Action\Redemption;
|
||||||
use XuanChen\UnionPay\Action\Reversal;
|
use XuanChen\UnionPay\Action\Reversal;
|
||||||
use XuanChen\UnionPay\Action\Skyxu;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 银联入口
|
* 银联入口
|
||||||
@@ -78,6 +75,7 @@ class UnionPay extends Init
|
|||||||
case '002025'://聚合营销优惠查询接口
|
case '002025'://聚合营销优惠查询接口
|
||||||
$action = new Query($this);
|
$action = new Query($this);
|
||||||
$action->start();
|
$action->start();
|
||||||
|
$this->outdata = $action->back();
|
||||||
break;
|
break;
|
||||||
case '002100'://销账交易接口
|
case '002100'://销账交易接口
|
||||||
$action = new Redemption($this);
|
$action = new Redemption($this);
|
||||||
@@ -134,13 +132,17 @@ class UnionPay extends Init
|
|||||||
*/
|
*/
|
||||||
public function checkInData()
|
public function checkInData()
|
||||||
{
|
{
|
||||||
//验签
|
try {
|
||||||
// $res = $this->checkSign(false, false);
|
//验签
|
||||||
//
|
$res = $this->checkSign(false, false);
|
||||||
// if ($res !== true) {
|
if ($res !== true) {
|
||||||
// $this->msg_rsp_code = 9996;
|
$this->msg_rsp_code = 9996;
|
||||||
// $this->msg_rsp_desc = '验签失败';
|
$this->msg_rsp_desc = '验签失败';
|
||||||
// }
|
}
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
$this->msg_rsp_code = 9996;
|
||||||
|
$this->msg_rsp_desc = $e->getMessage();
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->msg_txn_code && $this->msg_rsp_code == '0000') {
|
if ($this->msg_txn_code && $this->msg_rsp_code == '0000') {
|
||||||
$rule_code = config('unionpay.validator')[$this->msg_txn_code];
|
$rule_code = config('unionpay.validator')[$this->msg_txn_code];
|
||||||
Reference in New Issue
Block a user