|
|
@@ -1134,9 +1134,7 @@ class PurchaseClass extends BaseClass
|
|
|
'lklCertificatePath' => $lklCertificatePath,
|
|
|
];
|
|
|
$laResource = new Lakala($params);
|
|
|
- $closeParams = [
|
|
|
- 'orderSn' => $orderSn,
|
|
|
- ];
|
|
|
+ $closeParams = ['orderSn' => $orderSn];
|
|
|
$response = $laResource->close($closeParams);
|
|
|
if (isset($response['code']) == false || $response['code'] != 'BBS00000') {
|
|
|
//$msg = $response['msg'] ?? '';
|
|
|
@@ -1145,6 +1143,17 @@ class PurchaseClass extends BaseClass
|
|
|
} else {
|
|
|
//noticeUtil::push('花店采购单:' . $orderSn . ',关单成功了哦', '15280215347');
|
|
|
}
|
|
|
+
|
|
|
+ //收银台关单
|
|
|
+ $closeParams = ['orderSn' => $orderSn];
|
|
|
+ $response = $laResource->cashClose($closeParams);
|
|
|
+ if (isset($response['code']) == false || $response['code'] != '000000') {
|
|
|
+ $msg = $response['msg'] ?? '';
|
|
|
+ noticeUtil::push('单号:' . $orderSn . ',关单没有成功(收银台-支付宝),' . $msg, '15280215347');
|
|
|
+ }else{
|
|
|
+ noticeUtil::push('单号:' . $orderSn . ',关单成功(收银台-支付宝)' , '15280215347');
|
|
|
+ }
|
|
|
+
|
|
|
return $purchase;
|
|
|
}
|
|
|
|