|
|
@@ -16,38 +16,7 @@ class RechargeClass extends BaseClass
|
|
|
|
|
|
public static function cancelMyRecharge($recharge, $shop)
|
|
|
{
|
|
|
-// $payRequest = $recharge->payRequest ?? 0;
|
|
|
-// if ($payRequest == 0) {
|
|
|
-// $recharge->status = 2;
|
|
|
-// $recharge->save();
|
|
|
-// } else {
|
|
|
-// $closeOrderSn = $recharge->orderSn;
|
|
|
-// $merchantPrivateKeyPath = Yii::getAlias("@vendor/lakala") . '/production/api_private_key.pem';
|
|
|
-// $lklCertificatePath = Yii::getAlias("@vendor/lakala") . '/production/lkl-apigw-v1.cer';
|
|
|
-// $params = [
|
|
|
-// 'appid' => 'OP00002119',
|
|
|
-// 'serial_no' => '018b08cfddbd',
|
|
|
-// 'merchant_no' => $shop->lklSjNo,
|
|
|
-// 'term_no' => $shop->lklScanTermNo,
|
|
|
-// 'merchantPrivateKeyPath' => $merchantPrivateKeyPath,
|
|
|
-// 'lklCertificatePath' => $lklCertificatePath,
|
|
|
-// ];
|
|
|
-// $laResource = new Lakala($params);
|
|
|
-// $closeParams = ['orderSn' => $closeOrderSn];
|
|
|
-// if ($payRequest == 1) {
|
|
|
-// //聚合支付
|
|
|
-// $laResource->close($closeParams);
|
|
|
-// } else {
|
|
|
-// //收银台支付
|
|
|
-// $laResource->cashClose($closeParams);
|
|
|
-// }
|
|
|
-// }
|
|
|
-// $settleId = $recharge->settleId ?? 0;
|
|
|
-// $settle = SettleClass::getById($settleId, true);
|
|
|
-// if (!empty($settle)) {
|
|
|
-// $settle->status = 3;
|
|
|
-// $settle->save();
|
|
|
-// }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public static function getRechargeList($where)
|