|
|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace biz\shop\classes;
|
|
|
|
|
|
+use bizGhs\ws\services\WsService;
|
|
|
use bizHd\user\classes\UserClass;
|
|
|
use common\components\util;
|
|
|
use Yii;
|
|
|
@@ -121,4 +122,20 @@ class ShopAdminClass extends BaseClass
|
|
|
return self::addShopAdmin($data);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ public static function incomeNotice($shopId, $money, $payWay = 0)
|
|
|
+ {
|
|
|
+ $list = self::getAllByCondition(['shopId' => $shopId, 'delStatus' => 0, 'status' => 1]);
|
|
|
+ if (empty($list)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ foreach ($list as $key => $val) {
|
|
|
+ if ($val['remind'] == 1) {
|
|
|
+ $id = $val['id'];
|
|
|
+ Yii::info("income notice shopAdminId:{$id} " . $money);
|
|
|
+ WsService::arrivalNotice($id, $money, $payWay);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|