master
ljl 1 year ago
parent 1d51756533
commit 84ad71dc69

@ -119,6 +119,7 @@ class NotifyController extends AbstractController
$requestLog->getDataValue('notifyUrl'),
$requestLog->app,
[
'amount' => $order->amount,
'status' => $order->status,
'userId' => $order->user_id,
'orderNo' => $order->order_no,

@ -12,6 +12,11 @@ class RequestLog extends Model
'request_data' => 'array',
];
public function app()
{
return $this->belongsTo(App::class, 'app_id', 'app_id');
}
public function generateToken() {
return md5($this->app_id . '_' . $this->request_id);
}

Loading…
Cancel
Save