|
|
@@ -33,7 +33,7 @@ class OrderService extends BaseService
|
|
|
public static $baseFile = '\bizGhs\order\classes\OrderClass';
|
|
|
|
|
|
//添加订单
|
|
|
- public static function createOrder($data, $custom, $hasPay = true)
|
|
|
+ public static function createOrder($data, $custom, $hasPay = 1)
|
|
|
{
|
|
|
//供应商销售单
|
|
|
$returnOrder = OrderClass::addOrder($data);
|
|
|
@@ -115,7 +115,7 @@ class OrderService extends BaseService
|
|
|
$returnOrder->purchaseId = $purchaseId;
|
|
|
$returnOrder->save();
|
|
|
|
|
|
- if ($hasPay) {
|
|
|
+ if ($hasPay == 1) {
|
|
|
PurchaseService::payAfter($purchase, $payWay);
|
|
|
self::payAfter($returnOrder, $payWay);
|
|
|
}
|