|
|
@@ -23,7 +23,9 @@ class SettleController extends BaseController
|
|
|
|
|
|
//先将客户未过期的结账单置为过期
|
|
|
$customId = $post['customId'] ?? 0;
|
|
|
- SettleClass::updateByCondition(['customId' => $customId, 'status' => 1], ['status' => 3]);
|
|
|
+ if(!empty($customId)){
|
|
|
+ SettleClass::updateByCondition(['customId' => $customId, 'status' => 1], ['status' => 3]);
|
|
|
+ }
|
|
|
|
|
|
$staff = $this->shopAdmin;
|
|
|
$payWay = $post['payWay'] ?? dict::getDict('payWay', 'wxPay');
|