Browse Source

回调

master
weigang 5 years ago
parent
commit
3a01399734
  1. 3
      app/Service/v3/Implementations/PaymentService.php

3
app/Service/v3/Implementations/PaymentService.php

@ -6,6 +6,7 @@ use App\Commons\Log;
use App\Constants\v3\ErrorCode;
use App\Constants\v3\LogLabel;
use App\Constants\v3\OrderState;
use App\Constants\v3\OrderType;
use App\Exception\ErrorCodeException;
use App\Model\v3\OrderMain;
use App\Model\v3\User;
@ -50,7 +51,7 @@ class PaymentService implements PaymentServiceInterface
}
$payMoney = bcmul((string)$orderMain->money, 100, 0);
if (env('APP_ENV') != 'prod') {
if (env('APP_ENV') != 'prod' && $orderMain->type == OrderType::ONLINE) {
$payMoney = 1;
}

Loading…
Cancel
Save