efps-version
ljl 2 years ago
parent 58211925b4
commit 4a6326f1b7

@ -7,7 +7,9 @@ namespace App\Helper\OmiPay;
class Signer
{
public static function sign($params) {
$signString = $params['m_number'] . '&'
$mNumber = $params['m_number'] ?? '';
$mNumber = $mNumber ? $mNumber : Config::get('app_id');
$signString = $mNumber . '&'
. $params['timestamp'] . '&'
. $params['nonce_str'] . '&'
. Config::get('secret_key');

@ -96,6 +96,9 @@ class PaymentService extends AbstractService
}
$order = Order::where('order_no', $params['out_order_no'])->where('status', Order::STATUS_WAIT_PAY)->first();
if (!$order) {
return 'ORDER FAIL';
}
$app = App::where('app_id', $order->app_id)->first();
$order->status = Order::STATUS_PAYED;
$order->payed_at = date('Y-m-d H:i:s');

Loading…
Cancel
Save