Files
OMS/app/ome/lib/service/payment.php
2025-12-28 23:13:25 +08:00

48 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
class ome_service_payment{
/**
* __construct
* @param mixed $app app
* @return mixed 返回值
*/
public function __construct(&$app)
{
$this->app = $app;
}
/**
* 添加付款单
* @access public
* @param int $payment_id 付款单ID
*/
public function payment($payment_id){
$paymentModel = $this->app->model('payments');
$payment = $paymentModel->dump($payment_id);
$res = kernel::single('erpapi_router_request')->set('shop', $payment['shop_id'])->finance_addPayment($payment);
}
/**
* 付款单支付请求
* @access public
* @param int $sdf 请求数据
*/
public function payment_request($payment){
$res = kernel::single('erpapi_router_request')->set('shop', $payment['shop_id'])->finance_addPayment($payment);
}
/**
* 付款单状态更新
* @access public
* @param int $payment_id 付款单ID
*/
public function status_update($payment_id){
}
}