|
|
@@ -142,20 +142,20 @@ class PurchaseClass extends BaseClass
|
|
|
//订单发货子方法 ssh 20231119
|
|
|
public static function orderFh($cg, $params, $allowRepeat = false, $notice = false)
|
|
|
{
|
|
|
- if ($notice == true) {
|
|
|
+ if ($notice) {
|
|
|
$noticeText = json_encode(['id' => $cg->id]);
|
|
|
$noticeKey = "ghsKdNoticeHd";
|
|
|
Yii::$app->redis->executeCommand('LPUSH', [$noticeKey, $noticeText]);
|
|
|
}
|
|
|
if ($cg->status == 3) {
|
|
|
- if ($allowRepeat == false) {
|
|
|
+ if (!$allowRepeat) {
|
|
|
util::fail('订单已发货');
|
|
|
} else {
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
$fhType = $params['fhType'] ?? 0;
|
|
|
- if (is_numeric($fhType) == false) {
|
|
|
+ if (!is_numeric($fhType)) {
|
|
|
util::fail('请选择发货类型');
|
|
|
}
|
|
|
if ($fhType == 1) {
|