Browse Source

供货商

shish 3 years ago
parent
commit
1fcd472633
82 changed files with 237 additions and 237 deletions
  1. 1 1
      .env.example
  2. 1 1
      app-ghs/controllers/ApplyController.php
  3. 1 1
      app-ghs/controllers/AuthController.php
  4. 1 1
      app-ghs/controllers/BaseController.php
  5. 2 2
      app-ghs/controllers/ClearController.php
  6. 1 1
      app-ghs/controllers/CsController.php
  7. 2 2
      app-ghs/controllers/CustomController.php
  8. 8 8
      app-ghs/controllers/GhsController.php
  9. 1 1
      app-ghs/controllers/OrderController.php
  10. 1 1
      app-ghs/controllers/ProductController.php
  11. 1 1
      app-ghs/controllers/PurchaseClearController.php
  12. 2 2
      app-ghs/controllers/PurchaseOrderController.php
  13. 1 1
      app-ghs/controllers/ShopController.php
  14. 1 1
      app-hd/controllers/BaseController.php
  15. 3 3
      app-hd/controllers/GhsController.php
  16. 1 1
      app-hd/controllers/GhsProductController.php
  17. 1 1
      app-hd/controllers/NoticeController.php
  18. 5 5
      app-hd/controllers/ProductController.php
  19. 9 9
      app-hd/controllers/PurchaseController.php
  20. 2 2
      app-hd/controllers/RechargeController.php
  21. 1 1
      app-hd/controllers/ShopCouponController.php
  22. 1 1
      app-hd/controllers/ShopExtController.php
  23. 1 1
      app-mall/controllers/ItemController.php
  24. 2 2
      app-pt/config/main.php
  25. 1 1
      app-pt/controllers/GhsController.php
  26. 1 1
      app-pt/controllers/WxController.php
  27. 8 8
      app-pt/controllers/WxOpenController.php
  28. 1 1
      app-pt/views/main/index.php
  29. 1 1
      app-pt/views/main/user_privacy.php
  30. 1 1
      biz-ghs/admin/classes/AdminClass.php
  31. 7 7
      biz-ghs/clear/classes/ClearClass.php
  32. 1 1
      biz-ghs/custom/classes/CustomClass.php
  33. 3 3
      biz-ghs/custom/services/CustomService.php
  34. 1 1
      biz-ghs/item/classes/ItemClass.php
  35. 2 2
      biz-ghs/item/classes/ItemClassClass.php
  36. 1 1
      biz-ghs/merchant/services/MerchantService.php
  37. 3 3
      biz-ghs/order/classes/OrderClass.php
  38. 3 3
      biz-ghs/order/classes/OrderClearClass.php
  39. 3 3
      biz-ghs/order/classes/PurchaseOrderClass.php
  40. 10 10
      biz-ghs/order/services/OrderService.php
  41. 4 4
      biz-ghs/product/classes/ProductClass.php
  42. 1 1
      biz-ghs/product/services/ProductService.php
  43. 1 1
      biz-ghs/readMe.txt
  44. 2 2
      biz-ghs/stock/classes/StockRecordClass.php
  45. 1 1
      biz-ghs/ws/services/WsService.php
  46. 2 2
      biz-hd/cg/services/CgRefundService.php
  47. 7 7
      biz-hd/ghs/classes/GhsClass.php
  48. 1 1
      biz-hd/item/classes/ItemClass.php
  49. 2 2
      biz-hd/item/classes/ItemClassClass.php
  50. 1 1
      biz-hd/item/services/ItemService.php
  51. 1 1
      biz-hd/merchant/services/SjService.php
  52. 8 8
      biz-hd/purchase/classes/PurchaseClass.php
  53. 7 7
      biz-hd/purchase/classes/PurchaseClearClass.php
  54. 5 5
      biz-hd/purchase/services/PurchaseService.php
  55. 4 4
      biz-hd/saas/classes/ApplyClass.php
  56. 2 2
      biz-hd/saas/services/ApplyService.php
  57. 4 4
      biz-hd/wx/classes/WxOpenClass.php
  58. 1 1
      biz-jd/sj/services/SjService.php
  59. 8 8
      biz/ghs/classes/GhsClass.php
  60. 1 1
      biz/notice/classes/NoticeClass.php
  61. 2 2
      biz/pt/classes/AgreementClass.php
  62. 5 5
      biz/pt/classes/PtAssetClass.php
  63. 1 1
      biz/recharge/classes/RechargeClass.php
  64. 1 1
      biz/shop/classes/ShopClass.php
  65. 1 1
      biz/shop/classes/ShopExtClass.php
  66. 4 4
      biz/sj/classes/SjClass.php
  67. 1 1
      biz/stat/classes/StatKhCgClass.php
  68. 1 1
      biz/stat/classes/StatKhCgMonthClass.php
  69. 5 5
      biz/wx/classes/WxMessageClass.php
  70. 1 1
      biz/wx/classes/WxOpenClass.php
  71. 3 3
      common/components/book.php
  72. 19 19
      common/components/dict.php
  73. 1 1
      common/components/imgUtil.php
  74. 1 1
      common/components/miniUtil.php
  75. 7 7
      common/components/orderSn.php
  76. 5 5
      common/components/wxUtil.php
  77. 2 2
      common/services/xhPayToolService.php
  78. 6 6
      console/controllers/CustomController.php
  79. 1 1
      console/controllers/InitController.php
  80. 6 6
      console/controllers/ItemController.php
  81. 2 2
      console/controllers/PurchaseController.php
  82. 2 2
      doc/说明.md

+ 1 - 1
.env.example

@@ -33,7 +33,7 @@ GHS_UPDATE_REMIND=1
 #零售小程序有版本更新时是否提醒更新 0不要 1要
 HD_UPDATE_REMIND=1
 
-#供商APK最新版本
+#供商APK最新版本
 GHS_NEW_APK_VERSION=1.0.0
 GHS_NEW_APK_VERSION_MUST_UPDATE=0
 

+ 1 - 1
app-ghs/controllers/ApplyController.php

@@ -158,7 +158,7 @@ class ApplyController extends BaseController
             ApplyService::replaceGhs($post);
             $transaction->commit();
 
-            noticeUtil::push("供商 {$shopName} 手机号 {$mobile} 申请开店", '15280215347');
+            noticeUtil::push("供商 {$shopName} 手机号 {$mobile} 申请开店", '15280215347');
 
         } catch (\Exception $exception) {
             $transaction->rollBack();

+ 1 - 1
app-ghs/controllers/AuthController.php

@@ -427,7 +427,7 @@ class AuthController extends PublicController
     //静默获取小程序用户信息
     public function actionMiniInfo()
     {
-        //供商平台
+        //供商平台
         Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'ghs');
         $code = Yii::$app->request->get('code', '');
         $wxMiniBase = WxOpenClass::getGhsWxInfo();

+ 1 - 1
app-ghs/controllers/BaseController.php

@@ -27,7 +27,7 @@ class BaseController extends PublicController
     //ssh 2020.3.8
     public function beforeAction($action)
     {
-        //定义平台类型 1花店 2供
+        //定义平台类型 1花店 2供
         Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'ghs');
         //token验证
         $adminId = jwt::getLoginId();

+ 2 - 2
app-ghs/controllers/ClearController.php

@@ -23,7 +23,7 @@ class ClearController extends BaseController
         $ghsId = $clear->ghsId ?? 0;
         $ghs = GhsClass::getById($ghsId, true);
         if (empty($ghs)) {
-            util::fail('没有找到供商关系');
+            util::fail('没有找到供商关系');
         }
         if ($ghs->shopId != $this->shopId) {
             util::fail('没有权限');
@@ -42,7 +42,7 @@ class ClearController extends BaseController
         util::complete();
     }
 
-    //城市供商向基地批发商的结账单 ssh 20220523
+    //城市供商向基地批发商的结账单 ssh 20220523
     public function actionList()
     {
         $get = Yii::$app->request->get();

+ 1 - 1
app-ghs/controllers/CsController.php

@@ -33,7 +33,7 @@ class CsController extends PublicController
         //默认只显示上架的商品
         $status = Yii::$app->request->get('status', 1);
 
-        //获取所有当前供商的分类 (全部、常用)
+        //获取所有当前供商的分类 (全部、常用)
         //根据分类组装分类下的花材信息
         $classIds = ItemClassClass::getGhsItemClassAll($this->sjId);
 

+ 2 - 2
app-ghs/controllers/CustomController.php

@@ -181,7 +181,7 @@ class CustomController extends BaseController
                 'dist' => $dist,
                 'address' => $address,
                 'status' => ApplyClass::STATUS_PASS,
-                'replace' => 1,//1表示供商添加的客户
+                'replace' => 1,//1表示供商添加的客户
             ];
             $apply = ApplyService::replaceRetail($applyData);
             $id = $apply['id'] ?? 0;
@@ -270,7 +270,7 @@ class CustomController extends BaseController
             $customerCachedKey = 'batch_create_customer_list';
             $value = $name . '_' . $mobile . '_' . $this->sjId . '_' . $this->shop->id . '_' . $this->sj->name . '_' . $this->shopAdminId;
             Yii::$app->redis->executeCommand('LPUSH', [$customerCachedKey, $value]);
-            Yii::info("供商添加客户:name - " . $name . ' == mobile - ' . $mobile);
+            Yii::info("供商添加客户:name - " . $name . ' == mobile - ' . $mobile);
             Yii::info("shopAdminId: " . $this->shopAdminId);
         }
         util::complete('已添加,1分钟后生效');

+ 8 - 8
app-ghs/controllers/GhsController.php

@@ -15,7 +15,7 @@ use common\components\util;
 class GhsController extends BaseController
 {
 
-    //添加供商 ssh 20210611
+    //添加供商 ssh 20210611
     public function actionAdd()
     {
         $post = Yii::$app->request->post();
@@ -53,7 +53,7 @@ class GhsController extends BaseController
                 $hasGhs = GhsClass::getByCondition(['ownShopId' => $this->shopId, 'shopId' => $currentShopId], true);
                 if (!empty($hasGhs)) {
                     $name = $hasGhs->name ?? '';
-                    util::fail("手机已添加过了,供商名称:【{$name}】");
+                    util::fail("手机已添加过了,供商名称:【{$name}】");
                 }
                 $ghs = GhsClass::build($currentShopId, $shopId, 1);
                 $ghs['avatar'] = imgUtil::groupImg($ghs['avatar']);
@@ -61,8 +61,8 @@ class GhsController extends BaseController
                 util::success($ghs);
             } catch (\Exception $exception) {
                 $transaction->rollBack();
-                Yii::info("添加供商没有成功:" . $exception->getMessage());
-                util::fail('添加供商没有成功');
+                Yii::info("添加供商没有成功:" . $exception->getMessage());
+                util::fail('添加供商没有成功');
             }
             util::fail('添加失败,请联系管理员');
         }
@@ -97,7 +97,7 @@ class GhsController extends BaseController
             $currentShopId = $shop->id ?? 0;
             ApplyClass::updateById($id, ['sjId' => $currentSjId, 'shopId' => $currentShopId]);
             if (empty($currentShopId)) {
-                util::fail('供商没有添加成功!');
+                util::fail('供商没有添加成功!');
             }
             $ghs = GhsClass::build($currentShopId, $shopId, 1);
             $ghs['avatar'] = imgUtil::groupImg($ghs['avatar']);
@@ -105,12 +105,12 @@ class GhsController extends BaseController
             util::success($ghs);
         } catch (\Exception $exception) {
             $transaction->rollBack();
-            Yii::info("添加供商没有成功:" . $exception->getMessage());
-            util::fail('添加供商没有成功');
+            Yii::info("添加供商没有成功:" . $exception->getMessage());
+            util::fail('添加供商没有成功');
         }
     }
 
-    //供商列表 ssh 2021.1.18
+    //供商列表 ssh 2021.1.18
     public function actionList()
     {
         $get = Yii::$app->request->get();

+ 1 - 1
app-ghs/controllers/OrderController.php

@@ -892,7 +892,7 @@ class OrderController extends BaseController
         }
     }
 
-    //取消(供商)订单 shizhongqi 20220619
+    //取消(供商)订单 shizhongqi 20220619
     public function actionCancelOrder()
     {
         $post = Yii::$app->request->post();

+ 1 - 1
app-ghs/controllers/ProductController.php

@@ -78,7 +78,7 @@ class ProductController extends BaseController
         //默认显示未删除商品
         $delStatus = Yii::$app->request->get('delStatus', 0);
 
-        //获取所有当前供商的分类 (全部、常用)
+        //获取所有当前供商的分类 (全部、常用)
         //根据分类组装分类下的花材信息
         //中央ID
         $classIds = ItemClassClass::getGhsItemClassAll($this->mainId);

+ 1 - 1
app-ghs/controllers/PurchaseClearController.php

@@ -11,7 +11,7 @@ use Yii;
 class PurchaseClearController extends BaseController
 {
 
-    //供应商向基地供应商结账生成订单 ssh 20220523
+    //供货商向基地供货商结账生成订单 ssh 20220523
     public function actionCreateOrder()
     {
         $post = Yii::$app->request->post();

+ 2 - 2
app-ghs/controllers/PurchaseOrderController.php

@@ -119,10 +119,10 @@ class PurchaseOrderController extends BaseController
         $ghsItemInfo = PurchaseOrderClass::mergeItemInfo($ghsItemInfo);
         //判断花材格式,是否属于当前门店
         ProductClass::valid($ghsItemInfo, $this->mainId);
-        //获取供商信息
+        //获取供商信息
         $ghsId = $post['ghsId'];
         if (empty($ghsId)) {
-            util::fail("请选择供商");
+            util::fail("请选择供商");
         }
         $ghsInfo = GhsClass::getGhsInfo($ghsId);
         GhsClass::valid($ghsInfo, $this->shopId);

+ 1 - 1
app-ghs/controllers/ShopController.php

@@ -298,7 +298,7 @@ class ShopController extends BaseController
         util::success(['info' => $shop]);
     }
 
-    //获取平台所有的供商门店 ssh 20210908
+    //获取平台所有的供商门店 ssh 20210908
     public function actionGetPtGhsShop()
     {
         $hasSale = Yii::$app->request->get('hasSale', 0);

+ 1 - 1
app-hd/controllers/BaseController.php

@@ -27,7 +27,7 @@ class BaseController extends PublicController
     //ssh 2020.3.8
     public function beforeAction($action)
     {
-        //定义平台类型 1花店 2供商 3商城
+        //定义平台类型 1花店 2供商 3商城
         Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'hd');
 
         //token验证 

+ 3 - 3
app-hd/controllers/GhsController.php

@@ -40,7 +40,7 @@ class GhsController extends BaseController
         util::complete();
     }
 
-    //供商列表 ssh 2021.1.24
+    //供商列表 ssh 2021.1.24
     public function actionList()
     {
         $where = [];
@@ -77,7 +77,7 @@ class GhsController extends BaseController
         util::success($info);
     }
 
-    //根据门店获取供商信息 ssh 2021.4.14
+    //根据门店获取供商信息 ssh 2021.4.14
     public function actionInfo()
     {
         $shopId = Yii::$app->request->get('shopId');
@@ -103,7 +103,7 @@ class GhsController extends BaseController
             $ghs['tjFlAmount'] = $ghsShop->tjFlAmount ?? 0;
 
         } else {
-            //没有开店也给显示供商信息
+            //没有开店也给显示供商信息
             $shop = ShopClass::getShopInfo($shopId);
             $shopName = $shop['shopName'] ?? '';
             $sjName = $shop['merchantName'] ?? '';

+ 1 - 1
app-hd/controllers/GhsProductController.php

@@ -26,7 +26,7 @@ class GhsProductController extends BaseController
         $shopId = $get['shopId']??0;
         $sjId = $get['sjId']??0;
 
-        //获取所有当前供商的分类 (全部、常用)
+        //获取所有当前供商的分类 (全部、常用)
         //根据分类组装分类下的花材信息
         //中央ID
         $classIds = ItemClassClass::getGhsItemClassAll($this->mainId);

+ 1 - 1
app-hd/controllers/NoticeController.php

@@ -49,7 +49,7 @@ class NoticeController extends PublicController
             //支付成功后续流程
             payUtil::thirdPay($wxPay, $capitalType, $orderSn, $totalFee, $attach, $transactionId);
             $transaction->commit();
-            //花店采购供商端收到通知
+            //花店采购供商端收到通知
             ShopExtClass::hdCgGhsReport($orderSn);
             echo '<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>';
         } catch (\Exception $e) {

+ 5 - 5
app-hd/controllers/ProductController.php

@@ -122,7 +122,7 @@ class ProductController extends BaseController
         //默认显示未删除商品
         $delStatus = Yii::$app->request->get('delStatus', 0);
 
-        //获取所有当前供商的分类 (全部、常用)
+        //获取所有当前供商的分类 (全部、常用)
         //根据分类组装分类下的花材信息
         //中央ID
         $classIds = ItemClassClass::getGhsItemClassAll($this->mainId);
@@ -274,14 +274,14 @@ class ProductController extends BaseController
 
     }
 
-    //从零售端采购入库,查看供商的某个门店的product
+    //从零售端采购入库,查看供商的某个门店的product
     public function actionGhsItem()
     {
         $get = Yii::$app->request->get();
         $id = $get['id'] ?? 0;
         $ghs = GhsClass::getGhsInfo($id);
         if (empty($ghs)) {
-            util::fail('没有找到供商');
+            util::fail('没有找到供商');
         }
         $shopId = $ghs['shopId'] ?? 0;
         $black = $ghs['black'] ?? 2;
@@ -292,7 +292,7 @@ class ProductController extends BaseController
         $transaction = $connection->beginTransaction();
         try {
 
-            //获取所有当前供商的分类 (全部、常用)
+            //获取所有当前供商的分类 (全部、常用)
             //根据分类组装分类下的花材信息
             $shop = ShopClass::getById($shopId, true);
             $mainId = $shop->mainId ?? 0;
@@ -375,7 +375,7 @@ class ProductController extends BaseController
         util::complete();
     }
 
-    //供商产品的详情 ssh 20210903
+    //供商产品的详情 ssh 20210903
     public function actionGhsProductDetail()
     {
         $id = Yii::$app->request->get('id', 0);

+ 9 - 9
app-hd/controllers/PurchaseController.php

@@ -50,10 +50,10 @@ class PurchaseController extends BaseController
         $post['xj'] = $newXj;
 
         $ghsId = $post['ghsId'] ?? 0;
-        //供
+        //供
         $ghsInfo = GhsClass::getById($ghsId);
         if (empty($ghsInfo)) {
-            util::fail('没有找到供商');
+            util::fail('没有找到供商');
         }
         $ghsShopId = $ghsInfo['shopId'] ?? 0;
 
@@ -88,7 +88,7 @@ class PurchaseController extends BaseController
             $product = $post['product'] ?? '';
             $productList = json_decode($product, true);
 
-            //判断product数据是不是同个供商的
+            //判断product数据是不是同个供商的
             $ghsShopInfo = ShopClass::getById($ghsShopId, true);
             $ghsMainId = $ghsShopInfo->mainId ?? 0;
 
@@ -99,7 +99,7 @@ class PurchaseController extends BaseController
 
             ProductClass::valid($productList, $ghsMainId);
 
-            //供商预订单最低公斤数要求和每公斤服务费
+            //供商预订单最低公斤数要求和每公斤服务费
             $ghsInfo['kiloFee'] = $ghsShopInfo->kiloFee ?? 0;
             $ghsInfo['miniKilo'] = $ghsShopInfo->miniKilo ?? 0;
 
@@ -351,11 +351,11 @@ class PurchaseController extends BaseController
         util::success(['sedCost' => 0]);
         $post = Yii::$app->request->post();
         $ghsId = $post['ghsId'] ?? 0;
-        //供
+        //供
         $ghsInfo = GhsClass::getById($ghsId);
 
         if (empty($ghsInfo)) {
-            util::fail('没有找到供商');
+            util::fail('没有找到供商');
         }
         //花材信息
         $productJson = $post['product'] ?? '';
@@ -405,7 +405,7 @@ class PurchaseController extends BaseController
             $sendTime = date('Y-m-d H:i', strtotime("+30 minute"));
         }
 
-        //找供商的客户信息,用里面的配送相关地址信息
+        //找供商的客户信息,用里面的配送相关地址信息
         $customId = $ghsInfo['customId'] ?? 0;
         $customInfo = CustomClass::getById($customId);
         if (empty($customInfo)) {
@@ -416,13 +416,13 @@ class PurchaseController extends BaseController
         $shopNo = ShopExpressClass::getShopNo($ghsSjId, $ghsShopId);
         if (!$shopNo) {
             //使用自定义运费
-            //util::fail('供商暂未开通配送');
+            //util::fail('供商暂未开通配送');
             $cost = freight::getCost($ghsInfo['lat'], $ghsInfo['long'], $customInfo['lat'], $customInfo['long'], $weight);
             util::success(['sedCost' => $cost]);
         }
         //组装订单信息
         $info = [];
-        //发送放的商家信息,即供商的相关信息
+        //发送放的商家信息,即供商的相关信息
         $info['sjId'] = $ghsSjId;
         $info['shopId'] = $ghsShopId;
         $info['actPrice'] = $price;//价格

+ 2 - 2
app-hd/controllers/RechargeController.php

@@ -133,7 +133,7 @@ class RechargeController extends BaseController
         $ghsId = $get['ghsId'] ?? 0;
         $ghsInfo = GhsClass::getById($ghsId, true);
         if (empty($ghsInfo)) {
-            util::fail('没有找到供商');
+            util::fail('没有找到供商');
         }
         GhsClass::valid($ghsInfo, $this->shopId);
         $ghsShopId = $ghsInfo['shopId'] ?? 0;
@@ -142,7 +142,7 @@ class RechargeController extends BaseController
             util::fail('无效活动');
         }
         if ($hbInfo->shopId != $ghsShopId) {
-            util::fail('供商与充值红包活动不一致');
+            util::fail('供商与充值红包活动不一致');
         }
         if ($hbInfo->delStatus == 1) {
             util::fail('红包已更新,请重新发起充值');

+ 1 - 1
app-hd/controllers/ShopCouponController.php

@@ -43,7 +43,7 @@ class ShopCouponController extends BaseController
         util::success($data);
     }
 
-    //供商发放的有效优惠券、红包 ssh 20211001
+    //供商发放的有效优惠券、红包 ssh 20211001
     public function actionGhsSendHb()
     {
         $get = Yii::$app->request->get();

+ 1 - 1
app-hd/controllers/ShopExtController.php

@@ -31,7 +31,7 @@ class ShopExtController extends BaseController
         util::complete();
     }
 
-    //取出供商的小菊颜色 ssh 20210907
+    //取出供商的小菊颜色 ssh 20210907
     public function actionGetGhsXj()
     {
         $id = Yii::$app->request->get('ghsId', 0);

+ 1 - 1
app-mall/controllers/ItemController.php

@@ -18,7 +18,7 @@ class ItemController extends BaseController
         //默认显示未删除商品
         $delStatus = Yii::$app->request->get('delStatus', 0);
 
-        //获取所有当前供商的分类 (全部、常用)
+        //获取所有当前供商的分类 (全部、常用)
         //根据分类组装分类下的花材信息
         //中央ID
         $classIds = ItemClassClass::getGhsItemClassAll($this->mainId);

+ 2 - 2
app-pt/config/main.php

@@ -39,10 +39,10 @@ return [
 			'showScriptName' => false,
 			'rules' => [
 
-				//花店和供应商 授权事件接收URL style 1 花店 2 供应商 3商城
+				//花店和供货商 授权事件接收URL style 1 花店 2 供货商 3商城
 				'wx-open-api/<style:\w+>' => 'wx-open/api',
 
-				//公众号消息与事件接收地址 style 1 花店 2 供商 3商城
+				//公众号消息与事件接收地址 style 1 花店 2 供商 3商城
 				'wx/<style:\w+>/<appId:\w+>' => 'wx/api',
 
 				//公众号授权回调通知地址

+ 1 - 1
app-pt/controllers/GhsController.php

@@ -14,7 +14,7 @@ class GhsController extends BaseController
 
     public $guestAccess = [];
 
-    //绑定供商 ssh 2021.3.29
+    //绑定供商 ssh 2021.3.29
     public function actionBindGhs()
     {
         util::fail('已关闭');

+ 1 - 1
app-pt/controllers/WxController.php

@@ -169,7 +169,7 @@ class WxController extends PublicController
         } elseif ($style == dict::getDict('ptStyle', 'ghs')) {
             $merchant = WxOpenClass::getGhsWxInfo();
             $isOpen = 2;
-            //供
+            //供
             if ($this->msgType == 'event') {
 
                 switch ($Event) {

+ 8 - 8
app-pt/controllers/WxOpenController.php

@@ -126,7 +126,7 @@ class WxOpenController extends PublicController
         $accessTokenTime = date("Y-m-d H:i:s", (time() + $expires_in - 100));//安全起见,将过期时间设置得比微信里还短100秒
 
         if ($id == 'ghs') {
-            //这是供
+            //这是供
             $sjWxInfo = WxOpenClass::getGhsWxInfo();
         } elseif ($id == 'hd') {
             //这是零售商
@@ -161,9 +161,9 @@ class WxOpenController extends PublicController
                 $wxMiniBaseId = 0;
                 $msg = '未知状态';
                 if ($id == 'ghs') {
-                    //供
+                    //供
                     $wxMiniBaseId = $open['wxMiniBaseId'] ?? 0;
-                    $msg = '供商小程序绑定成功';
+                    $msg = '供商小程序绑定成功';
                 } elseif ($id == 'hd') {
                     //零售店
                     $wxMiniBaseId = $open['wxMiniBaseId'] ?? 0;
@@ -213,9 +213,9 @@ class WxOpenController extends PublicController
                 $wxBaseId = 0;
                 $msg = '未知状态';
                 if ($id == 'ghs') {
-                    //供商公众号
+                    //供商公众号
                     $wxBaseId = $open['wxBaseId'] ?? 0;
-                    $msg = '供商公众号绑定成功';
+                    $msg = '供商公众号绑定成功';
                 } elseif ($id == 'hd') {
                     //零售商公众号
                     $wxBaseId = $open['wxBaseId'] ?? 0;
@@ -255,7 +255,7 @@ class WxOpenController extends PublicController
     }
 
     //开放平台设置相关操作 ssh 2020.1.18
-    //供商使用 https://api.pt.hzghd.com/wx-open/bind-open?actId=3
+    //供商使用 https://api.pt.hzghd.com/wx-open/bind-open?actId=3
     //花店使用 https://api.pt.huaml.com/wx-open/bind-open?actId=3
     //商城使用 https://api.pt.theflorist.cn/wx-open/bind-open?actId=3
     public function actionBindOpen()
@@ -270,7 +270,7 @@ class WxOpenController extends PublicController
             Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'mall');
             $isOpen = 3;
         } elseif (strpos($host, 'hzghd.com') !== false || strpos($host, 'wixhb.com') !== false) {
-            //供
+            //供
             Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'ghs');
             $isOpen = 2;
         } else {
@@ -294,7 +294,7 @@ class WxOpenController extends PublicController
             $wxAppId = $merchant['wxAppId'];
             $openAppId = $merchant['openAppId'];
         } elseif ($isOpen == 2) {
-            //供
+            //供
             $merchant = WxOpenClass::getGhsWxInfo();
             $miniAppId = $merchant['miniAppId'];
             $wxAppId = $merchant['wxAppId'];

+ 1 - 1
app-pt/views/main/index.php

@@ -65,7 +65,7 @@
                         <div class="top-content">
                             <div class="top-content-item">
                                 <div class="product-title">供应链体系</div>
-                                <div class="product-text">面向花店,打通花店供应链与外部供商、分销渠道、外部客户的协同业务,与应收应付和存货核算高度集成。</div>
+                                <div class="product-text">面向花店,打通花店供应链与外部供商、分销渠道、外部客户的协同业务,与应收应付和存货核算高度集成。</div>
                             </div>
                             <div class="top-content-item">
                                 <div class="product-title">结算体系</div>

+ 1 - 1
app-pt/views/main/user_privacy.php

@@ -102,7 +102,7 @@
         3、与我们的关联公司共享:您的用户信息可能会与我们的关联公司共享。我们只会共享必要的用户信息,且受本隐私政策中所声明目的的约束。关联公司如要改变用户信息的处理目的,将再次征求您的授权同意。
         4、与授权合作伙伴共享:仅为实现本政策中声明的目的,我们的某些服务将由授权合作伙伴提供。我们可能会与合作伙伴共享您的某些用户信息,以提供更好的客户服务和用户体验。我们仅会出于合法、正当、必要、特定、明确的目的共享您的用户信息,并且只会共享提供服务所必要的用户信息。为了更好运营和改善技术和服务,您同意我们和授权合作伙伴在符合相关法律法规的前提下可将收集的信息用于其他服务和用途。
         以下列举了具体的授权合作伙伴,并提供了该第三方的隐私政策链接,我们建议您阅读该第三方的隐私政策:
-        (1)消息推送服务供商:由每日互动股份有限公司提供推送技术服务,我们可能会将您的设备平台、设备厂商及品牌、设备型号及系统版本、设备识别码、设备序列号等设备信息,应用列表信息、网络信息以及位置相关信息提供给每日互动股份有限公司,用于为您提供推送技术服务。我们在向您推送消息时,我们可能会授权每日互动股份有限公司进行链路调节,相互促活被关闭的SDK推送进程,保障您可以及时接收到我们向您推送的消息。详细内容请访问《个推用户隐私政策》。
+        (1)消息推送服务供商:由每日互动股份有限公司提供推送技术服务,我们可能会将您的设备平台、设备厂商及品牌、设备型号及系统版本、设备识别码、设备序列号等设备信息,应用列表信息、网络信息以及位置相关信息提供给每日互动股份有限公司,用于为您提供推送技术服务。我们在向您推送消息时,我们可能会授权每日互动股份有限公司进行链路调节,相互促活被关闭的SDK推送进程,保障您可以及时接收到我们向您推送的消息。详细内容请访问《个推用户隐私政策》。
         (2)广告、媒体:我们可能会将收集到的信息共享给广告、媒体以及我们的其他授权合作伙伴,用于包括优化广告投放和提升营销效果等商业化用途。
         对我们与之共享用户信息的公司、组织和个人,我们会与其签署严格的保密协定,要求他们按照我们的说明、本隐私政策以及其他任何相关的保密和安全措施来处理用户信息。
 

+ 1 - 1
biz-ghs/admin/classes/AdminClass.php

@@ -23,7 +23,7 @@ class AdminClass extends BaseClass
     CONST IDENTITY_UNKNOWN = 0;
     //客户,花店
     const IDENTITY_CUSTOM = 1;
-    //供商员工
+    //供商员工
     const IDENTITY_STAFF = 2;
 
     public static function getRecentShop($admin)

+ 7 - 7
biz-ghs/clear/classes/ClearClass.php

@@ -46,13 +46,13 @@ class ClearClass extends BaseClass
                 util::fail('请选择有欠款的采购单');
             }
             if ($purchase->ghsId != $currentGhsId) {
-                util::fail('请选择同个供商的订单');
+                util::fail('请选择同个供商的订单');
             }
             $totalPrice = bcadd($totalPrice, $purchase->actPrice, 2);
         }
         $ghs = GhsClass::getById($currentGhsId, true);
         if (empty($ghs)) {
-            util::fail('没有找到供商');
+            util::fail('没有找到供商');
         }
         GhsClass::valid($ghs, $data['shopId']);
         $ghsName = $ghs->name ?? '';
@@ -125,11 +125,11 @@ class ClearClass extends BaseClass
             util::fail($msg);
         }
 
-        //供商欠款变更
+        //供商欠款变更
         $ghsId = $order->ghsId;
         $ghs = GhsClass::getLockById($ghsId);
         if (empty($ghs)) {
-            util::fail('没有找到供商信息');
+            util::fail('没有找到供商信息');
         }
         $currentAmount = bcsub($ghs->debtAmount, $order->actPrice, 2);
         $ghs->debtAmount = $currentAmount;
@@ -140,7 +140,7 @@ class ClearClass extends BaseClass
         $shopId = $ghs->shopId;
         $shop = ShopClass::getLockById($shopId);
         if (empty($shop)) {
-            util::fail('没有找到供商门店');
+            util::fail('没有找到供商门店');
         }
         $mainId = $shop->mainId ?? 0;
         $main = MainClass::getLockById($mainId);
@@ -176,7 +176,7 @@ class ClearClass extends BaseClass
             $main->save();
         }
 
-        //应付供商款减少
+        //应付供商款减少
         $customShopId = $custom->shopId;
         $customShop = ShopClass::getLockById($customShopId);
         if (empty($customShop)) {
@@ -195,7 +195,7 @@ class ClearClass extends BaseClass
         $customMain->save();
     }
 
-    //供商的采购信息 ssh 20210625
+    //供商的采购信息 ssh 20210625
     public static function getGhsCgInfo($info)
     {
         $purchaseIds = $info['purchaseIds'] ?? [];

+ 1 - 1
biz-ghs/custom/classes/CustomClass.php

@@ -57,7 +57,7 @@ class CustomClass extends BaseClass
         self::LEVEL_ZS => 'zsAddPrice',
     ];
 
-    //建立客户和供商关系
+    //建立客户和供商关系
     public static function build($ghsShopId, $hdShopId, $changeName = '')
     {
         return GhsClass::build($ghsShopId, $hdShopId, 2, $changeName);

+ 3 - 3
biz-ghs/custom/services/CustomService.php

@@ -12,19 +12,19 @@ class CustomService extends BaseService
 
     public static $baseFile = '\bizGhs\custom\classes\CustomClass';
 
-    //分享建立客户和供商关系 ssh 2021.2.28
+    //分享建立客户和供商关系 ssh 2021.2.28
     public static function shareBuildTrade($applyData, $newShop)
     {
         $shopId = $newShop->id ?? 0;
         $introShopId = $applyData['introShopId'] ?? 0;
         if (!empty($introShopId)) {
-            //申请人是花店,介绍人是供
+            //申请人是花店,介绍人是供
             if ($applyData['style'] == SjClass::STYLE_RETAIL) {
                 if ($applyData['introStyle'] == SjClass::STYLE_SUPPLIER) {
                     CustomClass::build($introShopId, $shopId);
                 }
             }
-            //申请人是供商,介绍人是花店
+            //申请人是供商,介绍人是花店
             if ($applyData['style'] == SjClass::STYLE_SUPPLIER) {
                 if ($applyData['introStyle'] == SjClass::STYLE_RETAIL) {
                     CustomClass::build($shopId, $introShopId);

+ 1 - 1
biz-ghs/item/classes/ItemClass.php

@@ -212,7 +212,7 @@ class ItemClass extends BaseClass
         return $data;
     }
 
-    //获取当前供商下的所有item
+    //获取当前供商下的所有item
     public static function getGhsItemAll($sjId, $select = "*")
     {
         $where = [

+ 2 - 2
biz-ghs/item/classes/ItemClassClass.php

@@ -85,7 +85,7 @@ class ItemClassClass extends BaseClass
         $sjId = $data['sjId'] ?? 0;
         $name = $data['name'] ?? '';
         if (!$sjId) {
-            util::fail("请选择供商");
+            util::fail("请选择供商");
         }
         if (!$name) {
             util::fail("花材分类名称不能为空");
@@ -123,7 +123,7 @@ class ItemClassClass extends BaseClass
         return $data;
     }
 
-    //获取当前供商下的所有class
+    //获取当前供商下的所有class
     public static function getAll($sjId, $select = "*")
     {
         $where = [

+ 1 - 1
biz-ghs/merchant/services/MerchantService.php

@@ -147,7 +147,7 @@ class MerchantService extends BaseService
         $sjData['status'] = $sjStatus;
         MerchantClass::updateById($sjId, $sjData);
 
-        //建立供商和客户关系
+        //建立供商和客户关系
         if ($applyThis) {
             CustomService::shareBuildTrade($applyData, $shopRespond);
         }

+ 3 - 3
biz-ghs/order/classes/OrderClass.php

@@ -308,7 +308,7 @@ class OrderClass extends BaseClass
                 $payWay = $order->payWay ?? 0;
                 StatRefundClass::replace($main, $shop, $payWay, $refundPrice);
 
-                //供商预订单退款给客户,客户采购金额减少
+                //供商预订单退款给客户,客户采购金额减少
                 StatKhCgClass::ghsBookOrderChange(false, $order, $refundPrice);
             } else {
                 //欠款
@@ -361,7 +361,7 @@ class OrderClass extends BaseClass
                 StatKdClass::replace($shop, $currentDebt, $payWay);
                 //每天销售收入统计
                 StatSaleClass::replace($main, $shop, $currentDebt);
-                //预订单,客户补款给供商,客户采购金额增加
+                //预订单,客户补款给供商,客户采购金额增加
                 StatKhCgClass::ghsBookOrderChange(true, $order, $currentDebt);
             }
         }
@@ -823,7 +823,7 @@ class OrderClass extends BaseClass
         return $data;
     }
 
-    //整合订单员工和供商等信息 ssh 2021.1.19
+    //整合订单员工和供商等信息 ssh 2021.1.19
     //$isList 是否列表页
     public static function groupOrder($list, $showButton = false, $showItem = false, $showExpress = false, $isList = false)
     {

+ 3 - 3
biz-ghs/order/classes/OrderClearClass.php

@@ -65,7 +65,7 @@ class OrderClearClass extends BaseClass
         $ghsId = $custom->ghsId;
         $ghs = GhsClass::getLockById($ghsId);
         if (empty($ghs)) {
-            util::fail('没有找到供商');
+            util::fail('没有找到供商');
         }
         $ghsShopId = $ghs['shopId'] ?? 0;
         $ghsShop = ShopClass::getById($ghsShopId, true);
@@ -146,7 +146,7 @@ class OrderClearClass extends BaseClass
         $ghsId = $custom->ghsId;
         $ghs = GhsClass::getLockById($ghsId);
         if (empty($ghs)) {
-            util::fail('没有找到供商');
+            util::fail('没有找到供商');
         }
         $amount = $clear->prePrice ?? 0;
 
@@ -169,7 +169,7 @@ class OrderClearClass extends BaseClass
         // 采购单状态变更
         PurchaseClass::updateByIds($purchaseArr, ['debt' => 2, 'clearId' => $clearId, 'remainDebtPrice' => 0]);
 
-        //供商结账欠款减少
+        //供商结账欠款减少
         \bizHd\ghs\classes\GhsClass::clearDebtAmountReduce($ghs, $custom, $amount, $clear);
     }
 

+ 3 - 3
biz-ghs/order/classes/PurchaseOrderClass.php

@@ -273,11 +273,11 @@ class PurchaseOrderClass extends BaseClass
             $main->totalPurchase = $currentTotalPurchase;
             $main->save();
 
-            //供商资产增加
+            //供商资产增加
             $ghsId = $data['ghsId'] ?? 0;
             $ghs = GhsClass::getLockById($ghsId);
             if (empty($ghs)) {
-                util::fail('没有找到供商');
+                util::fail('没有找到供商');
             }
             $ghs->debt = GhsClass::DEBT_YES;
             $ghs->debtAmount = bcadd($ghs->debtAmount, $currentPrice, 2);
@@ -387,7 +387,7 @@ class PurchaseOrderClass extends BaseClass
             }
         }
         $orderData = self::groupAdmin($orderData);
-        //供商信息
+        //供商信息
         $ghsId = $orderData['ghsId'] ?? 0;
         $ghsInfo = GhsClass::getGhsInfo($ghsId);
         $orderData['supplierName'] = $ghsInfo['name'] ?? '';

+ 10 - 10
biz-ghs/order/services/OrderService.php

@@ -51,7 +51,7 @@ class OrderService extends BaseService
         }
         $data['product'] = $product;
 
-        //供商到货
+        //供商到货
         $respond = OrderClass::arrival($order, $data);
 
         $cgId = $order->purchaseId ?? 0;
@@ -60,7 +60,7 @@ class OrderService extends BaseService
             util::fail('没有找到采购单');
         }
 
-        //供商花材转换为零售店花材
+        //供商花材转换为零售店花材
         $ids = array_column($product, 'productId');
         $ghsProductInfo = ProductClass::getByIds($ids);
         if (empty($ghsProductInfo)) {
@@ -156,7 +156,7 @@ class OrderService extends BaseService
             $data['product'] = $newProductData;
         }
 
-        //供商销售单
+        //供商销售单
         $returnOrder = OrderClass::addOrder($data);
         $saleId = $returnOrder->id ?? 0;
 
@@ -168,7 +168,7 @@ class OrderService extends BaseService
         $ghsId = $data['ghsId'] ?? 0;
         $ghs = GhsClass::getById($ghsId);
         if (empty($ghs)) {
-            util::fail('没有找到供商');
+            util::fail('没有找到供商');
         }
         $ghsName = $ghs['name'] ?? '';
         $ghsAvatar = $ghs['avatar'] ?? '';
@@ -186,7 +186,7 @@ class OrderService extends BaseService
         $sendType = $data['sendType'] ?? OrderClass::SEND_TYPE_MYSELF;
         $getType = $sendType == OrderClass::SEND_TYPE_NO ? PurchaseClass::GET_TYPE_SELF_GET : PurchaseClass::GET_TYPE_SEND;
 
-        //零售采购单时没有传price字段,供商可以改价会传price字段,这里转成userPrice以便采购单识别使用改的价还是花材原价!
+        //零售采购单时没有传price字段,供商可以改价会传price字段,这里转成userPrice以便采购单识别使用改的价还是花材原价!
         $currentProduct = $data['product'];
         foreach ($currentProduct as $currentKey => $currentItem) {
             if (isset($currentProduct[$currentKey]['price'])) {
@@ -255,10 +255,10 @@ class OrderService extends BaseService
         $purchaseId = $order->purchaseId ?? 0;
         $purchase = PurchaseClass::getLockById($purchaseId);
 
-        //修改供商销售单
+        //修改供商销售单
         $returnOrder = OrderClass::updateOrder($order, $data);
 
-        //供商销售单的 0未欠款 1欠款 转成零售采购单的 1欠款 2未欠款
+        //供商销售单的 0未欠款 1欠款 转成零售采购单的 1欠款 2未欠款
         $debt = $data['debt'] ?? 0;
         $purchaseDebt = $debt == 1 ? PurchaseClass::DEBT_YES : PurchaseClass::DEBT_NO;
 
@@ -271,7 +271,7 @@ class OrderService extends BaseService
         $sendType = $data['sendType'] ?? OrderClass::SEND_TYPE_MYSELF;
         $getType = $sendType == OrderClass::SEND_TYPE_NO ? PurchaseClass::GET_TYPE_SELF_GET : PurchaseClass::GET_TYPE_SEND;
 
-        //供商价格是可以修改的,修改的价格一起传给采购单保存
+        //供商价格是可以修改的,修改的价格一起传给采购单保存
         $currentProduct = $data['product'];
         foreach ($currentProduct as $currentKey => $currentItem) {
             if (isset($currentProduct[$currentKey]['price'])) {
@@ -823,7 +823,7 @@ class OrderService extends BaseService
             util::fail('没有找到订单');
         }
 
-        //供商销售单退款
+        //供商销售单退款
         $saleRefund = RefundOrderService::addRefund($post, $order);
         $saleRefundId = $saleRefund->id;
 
@@ -836,7 +836,7 @@ class OrderService extends BaseService
 
         //花材列表结构
         // [{productId:0,num:1,unitType:0,unitPrice:12,unitName:'扎'}] productId 花材id num 退货数 unitType 大小单位0大1小 unitPrice 售价 unitName单位名称
-        //供商的花材信息转换成零售店的花材信息
+        //供商的花材信息转换成零售店的花材信息
         $ghsProduct = $post['product'] ?? '';
         $ghsProductIndex = array_column($ghsProduct, null, 'productId');
         $ids = array_column($ghsProduct, 'productId');

+ 4 - 4
biz-ghs/product/classes/ProductClass.php

@@ -641,7 +641,7 @@ class ProductClass extends BaseClass
             $itemNum = self::mergeItemNum($bigNum, $smallNum, $ratio);
             $totalItemNum = bcadd($totalItemNum, $itemNum, 2);
 
-            //供商开单可以传单价过来
+            //供商开单可以传单价过来
             $changePrice = isset($v['price']) && $v['price'] > 0 ? $v['price'] : 0;
 
             //今日特价、会员价
@@ -998,7 +998,7 @@ class ProductClass extends BaseClass
     }
 
 
-    //供商的productId => 零售端的productId  ,不存在的补productId(放在默认分类)
+    //供商的productId => 零售端的productId  ,不存在的补productId(放在默认分类)
     //productList [{"productId":"113","bigNum":1,"smallNum":0,"classId":"-2","itemId":1}]
     public static function toggleProductList($productList, $hdShopId, $hdSjId, $hdMainId)
     {
@@ -1041,7 +1041,7 @@ class ProductClass extends BaseClass
         return $productList;
     }
 
-    //供商、零售端新开门店时,初始化花材
+    //供商、零售端新开门店时,初始化花材
     public static function newShopInitProduct($sjId, $shopId, $newShopId, $adminId)
     {
         $product = self::getAllProduct($sjId, $shopId, "name,cover,classId,itemId,rank,price,priceLabel,cost,addPrice,stockWarning,weight,alias,py,ratio,bigUnit,smallUnit,bigUnitId,smallUnitId,inTurn");
@@ -1309,7 +1309,7 @@ class ProductClass extends BaseClass
         return $map;
     }
 
-    //获取当前供商下的所有item
+    //获取当前供商下的所有item
     public static function getGhsItemAll($sjId, $select = "*")
     {
         $where = [

+ 1 - 1
biz-ghs/product/services/ProductService.php

@@ -116,7 +116,7 @@ class ProductService extends BaseService
     {
         $status = 1;
 
-        //获取所有当前供商的分类
+        //获取所有当前供商的分类
         //根据分类组装分类下的花材信息
         //中央ID
         $classIds = ItemClassClass::getGhsItemClassAll($mainId);

+ 1 - 1
biz-ghs/readMe.txt

@@ -1 +1 @@
-ghs 供
+ghs 供

+ 2 - 2
biz-ghs/stock/classes/StockRecordClass.php

@@ -30,7 +30,7 @@ class StockRecordClass extends BaseClass
     const STOCK_RECORD_TYPE_GOODS_CONSUME_CANCEL = 14;//取消制作
     const STOCK_RECORD_TYPE_GOODS_WASTAGE_CANCEL = 15;//取消制作已报损
     const STOCK_RECORD_TYPE_HD_REFUND = 16;//花店退货退款
-    const STOCK_RECORD_TYPE_GHS_REFUND = 17;//供商申请退货退款
+    const STOCK_RECORD_TYPE_GHS_REFUND = 17;//供商申请退货退款
 
     public static $typeMap = [
         self::STOCK_RECORD_TYPE_PURCHASE => '采购入库',
@@ -130,7 +130,7 @@ class StockRecordClass extends BaseClass
         self::add($refundRecord);
     }
 
-    //供商给零售店退款退货增加库存变动记录 ssh 20220330
+    //供商给零售店退款退货增加库存变动记录 ssh 20220330
     public static function ghsRefundAddRecord($refundRecord)
     {
         $refundRecord['recordType'] = self::STOCK_RECORD_TYPE_REFUND;

+ 1 - 1
biz-ghs/ws/services/WsService.php

@@ -53,7 +53,7 @@ class WsService
         return true;
     }
 
-    //零售端采购时,提示供商(下所有有开启通知的员工),你有新订单
+    //零售端采购时,提示供商(下所有有开启通知的员工),你有新订单
     //商城客户下单时,提示零售花店(下所有有开启通知的员工) 你有新的订单
     public static function newOrderNotice($shopAdminId)
     {

+ 2 - 2
biz-hd/cg/services/CgRefundService.php

@@ -149,7 +149,7 @@ class CgRefundService extends BaseService
         $ghsId = $cg->ghsId;
         $ghs = GhsClass::getLockById($ghsId);
         if (empty($ghs)) {
-            util::fail('没有找到供商');
+            util::fail('没有找到供商');
         }
         $ghsName = $ghs->name ?? '';
 
@@ -255,7 +255,7 @@ class CgRefundService extends BaseService
             $main->mayPay = $currentMayPay;
             $main->save();
 
-            //应付供商款减少
+            //应付供商款减少
             \bizHd\ghs\classes\GhsClass::refundDebtAmountReduce($ghs, $cgRefund, $cg);
 
         } elseif ($payWay == dict::getDict('payWay', 'balancePay')) {

+ 7 - 7
biz-hd/ghs/classes/GhsClass.php

@@ -13,7 +13,7 @@ class GhsClass extends BaseClass
 
     public static $baseFile = '\bizHd\ghs\models\Ghs';
 
-    //供商销售欠款金额增加 ssh 20220306
+    //供商销售欠款金额增加 ssh 20220306
     public static function cgDebtAmountAdd($ghs, $order, $bookOrder = false)
     {
         $amount = $order->remainDebtPrice ?? 0;
@@ -47,12 +47,12 @@ class GhsClass extends BaseClass
         GhsDebtChangeClass::addChange($change);
     }
 
-    //供商结账欠款金额减少 ssh 20220306
+    //供商结账欠款金额减少 ssh 20220306
     public static function clearDebtAmountReduce($ghs, $custom, $amount, $clear)
     {
         $remainAmount = bcsub($ghs->debtAmount, $amount, 2);
         if ($remainAmount < 0) {
-            noticeUtil::push("结账没有成功,欠供应商总金额:{$ghs->debtAmount} 本次结账金额:{$amount} 供应商ID:{$ghs->id}", '15280215347');
+            noticeUtil::push("结账没有成功,欠供货商总金额:{$ghs->debtAmount} 本次结账金额:{$amount} 供货商ID:{$ghs->id}", '15280215347');
             util::fail('结账没有成功');
         }
         $ghs->debtAmount = $remainAmount;
@@ -81,7 +81,7 @@ class GhsClass extends BaseClass
 
     }
 
-    //供商退款欠款金额减少 ssh 20220306
+    //供商退款欠款金额减少 ssh 20220306
     public static function refundDebtAmountReduce($ghs, $refund, $cg)
     {
         $refundPrice = $refund->refundPrice ?? 0;
@@ -110,14 +110,14 @@ class GhsClass extends BaseClass
         GhsDebtChangeClass::addChange($change);
     }
 
-    //验证供商 ssh 20220307
+    //验证供商 ssh 20220307
     public static function valid($ghs, $shopId)
     {
         if (empty($ghs)) {
-            util::fail('没有找到供商');
+            util::fail('没有找到供商');
         }
         if ($ghs->ownShopId != $shopId) {
-            util::fail('不是您的供商');
+            util::fail('不是您的供商');
         }
         return true;
     }

+ 1 - 1
biz-hd/item/classes/ItemClass.php

@@ -610,7 +610,7 @@ class ItemClass extends BaseClass
         return $data;
     }
 
-    //获取当前供商下的所有item
+    //获取当前供商下的所有item
     public static function getItemAll($sjId, $select = "*")
     {
         $where = [

+ 2 - 2
biz-hd/item/classes/ItemClassClass.php

@@ -27,7 +27,7 @@ class ItemClassClass extends BaseClass
     public static function addItemClass($sjId,$data)
     {
         if(!$sjId){
-            util::fail("请选择供商");
+            util::fail("请选择供商");
         }
         $data['sjId'] = $sjId;
         $name = $data['name']??'';
@@ -59,7 +59,7 @@ class ItemClassClass extends BaseClass
         $sjId = $data['sjId']??0;
         $name = $data['name']??'';
         if(!$sjId){
-            util::fail("请选择供商");
+            util::fail("请选择供商");
         }
         if(!$name){
             util::fail("花材分类名称不能为空");

+ 1 - 1
biz-hd/item/services/ItemService.php

@@ -20,7 +20,7 @@ class ItemService extends BaseService
         $itemId = $data['itemId']??0;
         $shopId = $data['shopId']??0;
         if(!$sjId || !$shopId){
-            util::fail("请选择供商/门店");
+            util::fail("请选择供商/门店");
         }
         if(!$classId){
             util::fail("请选择分类");

+ 1 - 1
biz-hd/merchant/services/SjService.php

@@ -137,7 +137,7 @@ class SjService extends BaseService
         $sjData['status'] = $sjStatus;
         SjClass::updateById($sjId, $sjData);
 
-        //建立供商和客户关系
+        //建立供商和客户关系
         if ($applyOpen) {
             CustomService::shareBuildTrade($applyData, $shopInfo);
         }

+ 8 - 8
biz-hd/purchase/classes/PurchaseClass.php

@@ -184,9 +184,9 @@ class PurchaseClass extends BaseClass
             $main->totalIncome = $currentTotalIncome;
             $main->save();
 
-            //供应商退款,向供应商采购总金额减少
+            //供货商退款,向供货商采购总金额减少
             StatCgClass::replace($main, $shop, $refundPrice, 0, false);
-            //供应商退款,按供应商分别采购的金额减少
+            //供货商退款,按供货商分别采购的金额减少
             StatCgGhsClass::hdCgGhsReplace(false, $cg, $refundPrice, 0);
 
             $currentType = dict::getDict('capitalType', 'hdBookRefund', 'id');
@@ -265,7 +265,7 @@ class PurchaseClass extends BaseClass
             $ghsId = $cg->ghsId ?? 0;
             $ghs = GhsClass::getLockById($ghsId);
             if (empty($ghs)) {
-                util::fail('没有找到供商');
+                util::fail('没有找到供商');
             }
             \bizHd\ghs\classes\GhsClass::cgDebtAmountAdd($ghs, $cg, true);
 
@@ -293,9 +293,9 @@ class PurchaseClass extends BaseClass
                 'mainId' => $mainId,
             ];
             ShopCapitalClass::addCapital($capitalData);
-            //补款给供商,采购总金额增加
+            //补款给供商,采购总金额增加
             StatCgClass::replace($main, $shop, $currentDebt, 0, true);
-            //补款给供商,按供货商分别统计采购量增加
+            //补款给供商,按供货商分别统计采购量增加
             StatCgGhsClass::hdCgGhsReplace(true, $cg, $currentDebt, 0);
 
         }
@@ -320,7 +320,7 @@ class PurchaseClass extends BaseClass
         $productList = self::mergeItemInfo($productList);
         $data['kindNum'] = count($productList); //多少种花材
 
-        //传过来的是供商的productId,需要转换为零售端的productId
+        //传过来的是供商的productId,需要转换为零售端的productId
         //数据格式 [{"productId":"113","bigNum":1,"smallNum":0,"classId":"-2","hdProductId":1}]
         $shopId = $data['shopId'] ?? 0;
         $sjId = $data['sjId'] ?? 0;
@@ -562,7 +562,7 @@ class PurchaseClass extends BaseClass
         $productList = $data['product'];
         $productList = self::mergeItemInfo($productList);
         $data['kindNum'] = count($productList); //多少种花材
-        //供商productId转成零售的productId
+        //供商productId转成零售的productId
         $mainId = $purchase->mainId ?? 0;
         $productList = ProductClass::toggleProductList($productList, $shopId, $sjId, $mainId);
 
@@ -590,7 +590,7 @@ class PurchaseClass extends BaseClass
             $price = $productData[$productId]['price']; //卖的单价
             //每个花材总价(原价)
             $productPrePrice = bcmul($itemNum, $price, 2); //采购总价
-            //供商开单的每个花材总价,可能会改价
+            //供商开单的每个花材总价,可能会改价
             $productTotalPrice = isset($product['userPrice']) && $product['userPrice'] > 0 ? $product['userPrice'] : $productPrePrice;
 
             $itemInfo = [

+ 7 - 7
biz-hd/purchase/classes/PurchaseClearClass.php

@@ -60,7 +60,7 @@ class PurchaseClearClass extends BaseClass
                 util::fail('请选择有欠款的采购单');
             }
             if ($purchase->ghsId != $currentGhsId) {
-                util::fail('请选择同个供商的订单');
+                util::fail('请选择同个供商的订单');
             }
             $totalPrice = bcadd($totalPrice, $purchase->remainDebtPrice, 2);
             $saleId = $purchase->saleId;
@@ -137,11 +137,11 @@ class PurchaseClearClass extends BaseClass
         $purchaseIds = $order->purchaseIds;
         $arr = explode(',', $purchaseIds);
 
-        //供商欠款变更
+        //供商欠款变更
         $ghsId = $order->ghsId;
         $ghs = GhsClass::getLockById($ghsId);
         if (empty($ghs)) {
-            util::fail('没有找到供商信息');
+            util::fail('没有找到供商信息');
         }
 
         $customId = $ghs->customId;
@@ -155,7 +155,7 @@ class PurchaseClearClass extends BaseClass
         $shopId = $ghs->shopId;
         $shop = ShopClass::getLockById($shopId);
         if (empty($shop)) {
-            util::fail('没有找到供商门店');
+            util::fail('没有找到供商门店');
         }
         $mainId = $shop->mainId ?? 0;
         $main = MainClass::getLockById($mainId);
@@ -163,10 +163,10 @@ class PurchaseClearClass extends BaseClass
             util::fail('没有main信息');
         }
         if ($payWay == dict::getDict('payWay', 'wxPay')) {
-            //供商门店余额增加
+            //供商门店余额增加
             ShopClass::customClearAddBalance($main, $shop, $order);
         }
-        //供商的门店应收客户款减少
+        //供商的门店应收客户款减少
         $currentGathering = bcsub($main->mayGathering, $order->actPrice, 2);
         $main->mayGathering = $currentGathering;
         $main->save();
@@ -194,7 +194,7 @@ class PurchaseClearClass extends BaseClass
         //销售单状态变化
         OrderClass::updateByIds($saleIds, ['debt' => OrderClass::DEBT_NO, 'clearId' => $clearId, 'remainDebtPrice' => 0]);
 
-        //客户付供商款减少
+        //客户付供商款减少
         CustomClass::clearDebtAmountReduce($custom, $ghs, $order->actPrice, $order);
 
         WxMessageClass::clearInform($shop, $order, $custom);

+ 5 - 5
biz-hd/purchase/services/PurchaseService.php

@@ -39,7 +39,7 @@ class PurchaseService extends BaseService
         //零售采购单
         $respond = PurchaseClass::addPurchase($data, $ghs);
 
-        //供商销售单
+        //供商销售单
         $ghsId = $data['ghsId'] ?? 0;
         $currentShopId = $ghs['shopId'] ?? 0;
         $currentSjId = $ghs['sjId'] ?? 0;
@@ -56,7 +56,7 @@ class PurchaseService extends BaseService
         $purchaseId = $respond->id ?? 0;
         $shopAdminId = $data['shopAdminId'] ?? 0;
         $shopAdminName = $data['shopAdminName'] ?? '';
-        //客户采购时选了自取,则供商的销售单就是自取
+        //客户采购时选了自取,则供商的销售单就是自取
         $sendType = OrderClass::SEND_TYPE_UNKNOWN;
         $getType = $data['getType'] ?? PurchaseClass::GET_TYPE_SELF_GET;
         if ($getType == PurchaseClass::GET_TYPE_SELF_GET) {
@@ -387,7 +387,7 @@ class PurchaseService extends BaseService
 
         }
         if ($payWay == dict::getDict('payWay', 'debtPay')) {
-            //应付供商款增加
+            //应付供商款增加
             $currentMayPay = bcadd($main->mayPay, $realPrice, 2);
             $main->mayPay = $currentMayPay;
         }
@@ -421,11 +421,11 @@ class PurchaseService extends BaseService
         $amount = $info->orderPrice ?? 0;
         StatCgGhsClass::hdCgGhsReplace(true, $info, $amount, $num);
 
-        //供商资产变化
+        //供商资产变化
         $ghsId = $info->ghsId ?? 0;
         $ghs = GhsClass::getLockById($ghsId);
         if (empty($ghs)) {
-            util::fail('没有找到供商');
+            util::fail('没有找到供商');
         }
         if ($payWay == dict::getDict('payWay', 'debtPay')) {
             \bizHd\ghs\classes\GhsClass::cgDebtAmountAdd($ghs, $info);

+ 4 - 4
biz-hd/saas/classes/ApplyClass.php

@@ -22,7 +22,7 @@ class ApplyClass extends BaseClass
 
     //来自零售平台
     const FROM_RETAIL = 1;
-    //来自供商平台
+    //来自供商平台
     const FROM_GHS = 2;
 
     const STATUS_CHECKING = 1;
@@ -80,7 +80,7 @@ class ApplyClass extends BaseClass
         $data['fullAddress'] = $city . $dist . $address . $floor;
         $data['style'] = SjClass::STYLE_RETAIL;
         $respond = self::addApply($data);
-        //供商添加客户的不需要通知
+        //供商添加客户的不需要通知
         if (isset($data['replace']) && $data['replace'] == 0) {
             $mobile = $data['mobile'];
             $text = "零售商 {$mobile} 已提交资料,";
@@ -105,7 +105,7 @@ class ApplyClass extends BaseClass
         $respond = self::addApply($data);
         if (isset($data['replace']) && $data['replace'] == 0) {
             $mobile = $data['mobile'];
-            $text = "供商 {$mobile} 已提交资料,";
+            $text = "供商 {$mobile} 已提交资料,";
             if (isset($data['introSjName']) && !empty($data['introSjName'])) {
                 $text .= "介绍人:{$data['introSjName']},";
             }
@@ -127,7 +127,7 @@ class ApplyClass extends BaseClass
         $respond = self::addApply($data);
         if (isset($data['replace']) && $data['replace'] == 0) {
             $mobile = $data['mobile'];
-            $text = "供商 {$mobile} 已提交资料,";
+            $text = "供商 {$mobile} 已提交资料,";
             if (isset($data['introSjName']) && !empty($data['introSjName'])) {
                 $text .= "介绍人:{$data['introSjName']},";
             }

+ 2 - 2
biz-hd/saas/services/ApplyService.php

@@ -128,7 +128,7 @@ class ApplyService extends BaseService
         return $respond;
     }
 
-    //供商申请开店 ssh 2021.01.28
+    //供商申请开店 ssh 2021.01.28
     public static function replaceGhs($data)
     {
         $mobile = $data['mobile'] ?? 0;
@@ -190,7 +190,7 @@ class ApplyService extends BaseService
         return $respond;
     }
 
-    //供商申请开店 ssh 2021.01.28
+    //供商申请开店 ssh 2021.01.28
     public static function replaceKmGhs($data)
     {
         $mobile = $data['mobile'] ?? 0;

+ 4 - 4
biz-hd/wx/classes/WxOpenClass.php

@@ -96,7 +96,7 @@ class WxOpenClass extends BaseClass
     {
         $open = self::getByCondition(['style' => dict::getDict('ptStyle','ghs')]);
         if (empty($open)) {
-            util::fail('没有找到供商平台信息...');
+            util::fail('没有找到供商平台信息...');
         }
         $wxBaseId = isset($open['wxBaseId']) ? $open['wxBaseId'] : 0;
         $base = WxBaseClass::getById($wxBaseId);
@@ -111,7 +111,7 @@ class WxOpenClass extends BaseClass
     {
         $open = self::getByCondition(['style' => dict::getDict('ptStyle','ghs')]);
         if (empty($open)) {
-            util::fail('没有找到供商平台信息...');
+            util::fail('没有找到供商平台信息...');
         }
         $wxMiniBaseId = isset($open['wxMiniBaseId']) ? $open['wxMiniBaseId'] : 0;
         $base = WxMiniBaseClass::getById($wxMiniBaseId);
@@ -139,7 +139,7 @@ class WxOpenClass extends BaseClass
     {
         $open = self::getByCondition(['style' => dict::getDict('ptStyle','mall')]);
         if (empty($open)) {
-            util::fail('没有找到供商平台信息...');
+            util::fail('没有找到供商平台信息...');
         }
         $wxMiniBaseId = isset($open['wxMiniBaseId']) ? $open['wxMiniBaseId'] : 0;
         $base = WxMiniBaseClass::getById($wxMiniBaseId);
@@ -154,7 +154,7 @@ class WxOpenClass extends BaseClass
     {
         $open = self::getByCondition(['style' => dict::getDict('ptStyle','mall')]);
         if (empty($open)) {
-            util::fail('没有找到供商平台信息...');
+            util::fail('没有找到供商平台信息...');
         }
         $wxBaseId = isset($open['wxBaseId']) ? $open['wxBaseId'] : 0;
         $base = WxBaseClass::getById($wxBaseId);

+ 1 - 1
biz-jd/sj/services/SjService.php

@@ -135,7 +135,7 @@ class SjService extends BaseService
         $sjData['status'] = $sjStatus;
         MerchantClass::updateById($sjId, $sjData);
 
-        //建立供商和客户关系
+        //建立供商和客户关系
         if ($applyThis) {
             CustomService::shareBuildTrade($applyData, $shopRespond);
         }

+ 8 - 8
biz/ghs/classes/GhsClass.php

@@ -29,7 +29,7 @@ class GhsClass extends BaseClass
         return false;
     }
 
-    //新增客户和供商关系 ssh 2021.4.13
+    //新增客户和供商关系 ssh 2021.4.13
     public static function build($ghsShopId, $hdShopId, $type = 1, $changeName = '')
     {
         if ($type == 1) {
@@ -89,7 +89,7 @@ class GhsClass extends BaseClass
         if ($uniGhsId == 0 && $hasManyGhs == 0) {
             ShopClass::updateById($hdShopId, ['uniGhsId' => $ghsId]);
         } else {
-            //从只有一个供应商变成有多个供应
+            //从只有一个供货商变成有多个供货
             ShopClass::updateById($hdShopId, ['hasManyGhs' => 1]);
         }
 
@@ -136,13 +136,13 @@ class GhsClass extends BaseClass
         return $custom;
     }
 
-    //增加供商 ssh 2021.3.29
+    //增加供商 ssh 2021.3.29
     public static function addGhs($data)
     {
         return self::add($data);
     }
 
-    //供商列表 ssh 2021.1.24
+    //供商列表 ssh 2021.1.24
     public static function getGhsList($where)
     {
         $data = self::getList('*', $where, 'inTurn DESC,addTime DESC');
@@ -150,7 +150,7 @@ class GhsClass extends BaseClass
         return $data;
     }
 
-    //根据xhSupplier的id数组 取供商信息 ssh 2021.1.18
+    //根据xhSupplier的id数组 取供商信息 ssh 2021.1.18
     public static function getGhsByIds($ids)
     {
         $list = self::getByIds($ids, null, 'id');
@@ -200,7 +200,7 @@ class GhsClass extends BaseClass
         return $list;
     }
 
-    //根据供商信息 ssh 2021.1.18
+    //根据供商信息 ssh 2021.1.18
     public static function getGhsInfo($id)
     {
         $info = self::getById($id);
@@ -230,12 +230,12 @@ class GhsClass extends BaseClass
     public static function valid($info, $shopId)
     {
         if (empty($info)) {
-            util::fail('没有供商');
+            util::fail('没有供商');
         }
         if ($info['ownShopId'] == $shopId) {
             return true;
         }
-        util::fail('您没有权限访问的供商');
+        util::fail('您没有权限访问的供商');
     }
 
 }

+ 1 - 1
biz/notice/classes/NoticeClass.php

@@ -12,7 +12,7 @@ use Yii;
 class NoticeClass extends BaseClass
 {
 
-    //城市供商新订单通知 ssh 20210115
+    //城市供商新订单通知 ssh 20210115
     public static function ghsNewOrderNotice($order)
     {
         //app消息通知

+ 2 - 2
biz/pt/classes/AgreementClass.php

@@ -138,7 +138,7 @@ TEXT;
         3、与我们的关联公司共享:您的用户信息可能会与我们的关联公司共享。我们只会共享必要的用户信息,且受本隐私政策中所声明目的的约束。关联公司如要改变用户信息的处理目的,将再次征求您的授权同意。
         4、与授权合作伙伴共享:仅为实现本政策中声明的目的,我们的某些服务将由授权合作伙伴提供。我们可能会与合作伙伴共享您的某些用户信息,以提供更好的客户服务和用户体验。我们仅会出于合法、正当、必要、特定、明确的目的共享您的用户信息,并且只会共享提供服务所必要的用户信息。为了更好运营和改善技术和服务,您同意我们和授权合作伙伴在符合相关法律法规的前提下可将收集的信息用于其他服务和用途。
         _@@__BB_以下列举了具体的授权合作伙伴,并提供了该第三方的隐私政策链接,我们建议您阅读该第三方的隐私政策:
-        _@@__BB_(1)消息推送服务供商:由每日互动股份有限公司提供推送技术服务,我们可能会将您的设备平台、设备厂商及品牌、设备型号及系统版本、设备识别码、设备序列号等设备信息,应用列表信息、网络信息以及位置相关信息提供给每日互动股份有限公司,用于为您提供推送技术服务。我们在向您推送消息时,我们可能会授权每日互动股份有限公司进行链路调节,相互促活被关闭的SDK推送进程,保障您可以及时接收到我们向您推送的消息。具体介绍如下:
+        _@@__BB_(1)消息推送服务供商:由每日互动股份有限公司提供推送技术服务,我们可能会将您的设备平台、设备厂商及品牌、设备型号及系统版本、设备识别码、设备序列号等设备信息,应用列表信息、网络信息以及位置相关信息提供给每日互动股份有限公司,用于为您提供推送技术服务。我们在向您推送消息时,我们可能会授权每日互动股份有限公司进行链路调节,相互促活被关闭的SDK推送进程,保障您可以及时接收到我们向您推送的消息。具体介绍如下:
         _@@__BB_SDK名称:个推·消息推送
         _BB_使用目的:消息推送
         _BB_使用方式:您的店铺有新订单时通知您
@@ -423,7 +423,7 @@ TEXT;
         3、与我们的关联公司共享:您的用户信息可能会与我们的关联公司共享。我们只会共享必要的用户信息,且受本隐私政策中所声明目的的约束。关联公司如要改变用户信息的处理目的,将再次征求您的授权同意。
         4、与授权合作伙伴共享:仅为实现本政策中声明的目的,我们的某些服务将由授权合作伙伴提供。我们可能会与合作伙伴共享您的某些用户信息,以提供更好的客户服务和用户体验。我们仅会出于合法、正当、必要、特定、明确的目的共享您的用户信息,并且只会共享提供服务所必要的用户信息。为了更好运营和改善技术和服务,您同意我们和授权合作伙伴在符合相关法律法规的前提下可将收集的信息用于其他服务和用途。
         _@@__BB_以下列举了具体的授权合作伙伴,并提供了该第三方的隐私政策链接,我们建议您阅读该第三方的隐私政策:
-        _@@__BB_(1)消息推送服务供商:由每日互动股份有限公司提供推送技术服务,我们可能会将您的设备平台、设备厂商及品牌、设备型号及系统版本、设备识别码、设备序列号等设备信息,应用列表信息、网络信息以及位置相关信息提供给每日互动股份有限公司,用于为您提供推送技术服务。我们在向您推送消息时,我们可能会授权每日互动股份有限公司进行链路调节,相互促活被关闭的SDK推送进程,保障您可以及时接收到我们向您推送的消息。具体介绍如下:
+        _@@__BB_(1)消息推送服务供商:由每日互动股份有限公司提供推送技术服务,我们可能会将您的设备平台、设备厂商及品牌、设备型号及系统版本、设备识别码、设备序列号等设备信息,应用列表信息、网络信息以及位置相关信息提供给每日互动股份有限公司,用于为您提供推送技术服务。我们在向您推送消息时,我们可能会授权每日互动股份有限公司进行链路调节,相互促活被关闭的SDK推送进程,保障您可以及时接收到我们向您推送的消息。具体介绍如下:
         _@@__BB_SDK名称:个推·消息推送
         _BB_使用目的:消息推送
         _BB_使用方式:您的店铺有新订单时通知您

+ 5 - 5
biz/pt/classes/PtAssetClass.php

@@ -280,7 +280,7 @@ class PtAssetClass extends BaseClass
         PtYeChangeClass::addChange($change, true);
     }
 
-    //供商预订被多付了退款减少余额 ssh 20220324
+    //供商预订被多付了退款减少余额 ssh 20220324
     public static function ghsBookOrderRefundReduceBalance($shop, $refund, $refundPrice)
     {
         $ptStyle = $shop->ptStyle;
@@ -487,7 +487,7 @@ class PtAssetClass extends BaseClass
         return $asset;
     }
 
-    //供商平台余额对象 ssh 20210519
+    //供商平台余额对象 ssh 20210519
     public static function getGhsBalance()
     {
         $ghs = dict::getDict('ptAsset', 'ghsBalance');
@@ -499,7 +499,7 @@ class PtAssetClass extends BaseClass
             self::add($data);
             $asset = self::getLockById($id);
             if (empty($asset)) {
-                util::fail('没有找到供商平台余额,请先创建');
+                util::fail('没有找到供商平台余额,请先创建');
             }
         }
         return $asset;
@@ -523,7 +523,7 @@ class PtAssetClass extends BaseClass
         return $asset;
     }
 
-    //供商平台余额对象 ssh 20210519
+    //供商平台余额对象 ssh 20210519
     public static function getGhsTxBalance()
     {
         $txGhs = dict::getDict('ptAsset', 'ghsTxBalance');
@@ -535,7 +535,7 @@ class PtAssetClass extends BaseClass
             self::add($data);
             $asset = self::getLockById($id);
             if (empty($asset)) {
-                util::fail('没有找到供商平台可提现余额,请先创建');
+                util::fail('没有找到供商平台可提现余额,请先创建');
             }
         }
         return $asset;

+ 1 - 1
biz/recharge/classes/RechargeClass.php

@@ -70,7 +70,7 @@ class RechargeClass extends BaseClass
 //                $ghs = GhsClass::getById($ghsId);
 //                $ghsName = $ghs['name'] ?? '';
 //                $customName = $shop->shopName ?? '';
-//                noticeUtil::push("客户[{$customName}]在供商[{$ghsName}]充值花款{$recharge->amount}元,免费续期一年", '15280215347');
+//                noticeUtil::push("客户[{$customName}]在供商[{$ghsName}]充值花款{$recharge->amount}元,免费续期一年", '15280215347');
 //            }
 //        }
 

+ 1 - 1
biz/shop/classes/ShopClass.php

@@ -453,7 +453,7 @@ class ShopClass extends BaseClass
         PtAssetClass::cgRefundAddBalance($shop, $refundPrice, $cgRefund, $currentType, $tx);
     }
 
-    //供商预订被多付了退款减少余额 ssh 20220324
+    //供商预订被多付了退款减少余额 ssh 20220324
     public static function ghsBookOrderRefundReduceBalance($main, $shop, $refund, $refundPrice)
     {
         $currentBalance = bcsub($main->balance, $refundPrice, 2);

+ 1 - 1
biz/shop/classes/ShopExtClass.php

@@ -79,7 +79,7 @@ class ShopExtClass extends BaseClass
         $curl->get($url);
     }
 
-    //花店采购供商端播放声音
+    //花店采购供商端播放声音
     public static function hdCgGhsReport($orderSn)
     {
 

+ 4 - 4
biz/sj/classes/SjClass.php

@@ -13,15 +13,15 @@ class SjClass extends BaseClass
 
     //零售店
     const STYLE_RETAIL = 1;
-    //供
+    //供
     const STYLE_SUPPLIER = 2;
-    //昆明供
+    //昆明供
     const STYLE_KM_SUPPLIER = 4;
 
     const STYLE_LIST = [
         self::STYLE_RETAIL => '花店',
-        self::STYLE_SUPPLIER => '供商',
-        self::STYLE_KM_SUPPLIER => '昆明供商',
+        self::STYLE_SUPPLIER => '供商',
+        self::STYLE_KM_SUPPLIER => '昆明供商',
     ];
 
     //续期一年 ssh 2021.4.25

+ 1 - 1
biz/stat/classes/StatKhCgClass.php

@@ -31,7 +31,7 @@ class StatKhCgClass extends BaseClass
         StatKhCgMonthClass::ghsBookOrderRefundNum($order, $num, $time);
     }
 
-    //供商预订单退款,客户采购金额减少
+    //供商预订单退款,客户采购金额减少
     public static function ghsBookOrderChange($add, $order, $amount, $date = null)
     {
         $sjId = $order->sjId ?? 0;

+ 1 - 1
biz/stat/classes/StatKhCgMonthClass.php

@@ -40,7 +40,7 @@ class StatKhCgMonthClass extends BaseClass
         $unique->save();
     }
 
-    //供商预订单退款,客户采购金额减少
+    //供商预订单退款,客户采购金额减少
     public static function ghsBookOrderChange($add, $order, $amount, $date = null)
     {
         if ($date == null) {

+ 5 - 5
biz/wx/classes/WxMessageClass.php

@@ -38,7 +38,7 @@ class WxMessageClass extends BaseClass
                 'OPENTM411530050' => '充值成功提醒',
                 'OPENTM408238177' => '反馈进度通知',
             ],
-            //供
+            //供
             dict::getDict('ptStyle', 'ghs') => [
                 'OPENTM417875155' => '新订单通知',
                 'OPENTM207430125' => '操作成功通知',
@@ -115,7 +115,7 @@ class WxMessageClass extends BaseClass
         }
     }
 
-    //供商新订单通知 ssh 20210529
+    //供商新订单通知 ssh 20210529
     public static function ghsHasNewOrderInform($shop, $order)
     {
         if ($order->payStatus != 1) {
@@ -356,7 +356,7 @@ class WxMessageClass extends BaseClass
         }
     }
 
-    //零售清算欠款通知供商 ssh 20210531
+    //零售清算欠款通知供商 ssh 20210531
     public static function clearInform($shop, $order, $custom)
     {
         $ptStyle = $shop->ptStyle;
@@ -784,7 +784,7 @@ class WxMessageClass extends BaseClass
         }
     }
 
-    //供商新客户通知 ssh 20210909
+    //供商新客户通知 ssh 20210909
     public static function newGhsCustomInform($shop, $custom, $introduce)
     {
         $ptStyle = $shop['ptStyle'] ?? 0;
@@ -834,7 +834,7 @@ class WxMessageClass extends BaseClass
         }
     }
 
-    //客户充值通知供商 ssh 20211005
+    //客户充值通知供商 ssh 20211005
     public static function customRechargeInformGhs($recharge)
     {
         $amount = $recharge->amount ?? 0;

+ 1 - 1
biz/wx/classes/WxOpenClass.php

@@ -29,7 +29,7 @@ class WxOpenClass extends BaseClass
         return $arr;
     }
 
-    //取供商平台信息 ssh 2021.2.25
+    //取供商平台信息 ssh 2021.2.25
     public static function getGhsOpen()
     {
         return self::getByCondition(['style' => dict::getDict('ptStyle', 'ghs')]);

+ 3 - 3
common/components/book.php

@@ -30,8 +30,8 @@ class book
             ['title' => '小菊的管理', 'id' => 'xjMange'],
             ['title' => '添加修改分类、花材排序', 'id' => 'addUpdateCat']
         ]],
-        ['class' => '采购与供商', 'icon' => '/book/cg.png', 'list' => [
-            ['title' => '添加供商', 'id' => 'addGys'],
+        ['class' => '采购与供商', 'icon' => '/book/cg.png', 'list' => [
+            ['title' => '添加供商', 'id' => 'addGys'],
             ['title' => '录采购单和智能改价', 'id' => 'fillCgOrder'],
             ['title' => '标准采购与月底', 'id' => 'useBz'],
         ]],
@@ -141,7 +141,7 @@ class book
             ['style' => 'image', 'value' => '/book/image/stat1.png'],
         ],
         'addGys' => [
-            ['style' => 'info', 'value' => '菜单【应用】的采购和供商模块'],
+            ['style' => 'info', 'value' => '菜单【应用】的采购和供商模块'],
             ['style' => 'image', 'value' => '/book/image/addGys1.png'],
             ['style' => 'image', 'value' => '/book/image/addGys2.png'],
         ],

+ 19 - 19
common/components/dict.php

@@ -74,9 +74,9 @@ class dict
         //平台资产
         'ptAsset' => [
             'hdBalance' => ['id' => 1, 'name' => '零售余额'],
-            'ghsBalance' => ['id' => 2, 'name' => '供商余额'],
+            'ghsBalance' => ['id' => 2, 'name' => '供商余额'],
             'hdTxBalance' => ['id' => 3, 'name' => '零售可提现'],
-            'ghsTxBalance' => ['id' => 4, 'name' => '供商可提现'],
+            'ghsTxBalance' => ['id' => 4, 'name' => '供商可提现'],
         ],
 
         //是否在线支付
@@ -109,24 +109,24 @@ class dict
         //所属平台类型
         'ptStyle' => [
             'hd' => 1,//零售花店
-            'ghs' => 2,//供
+            'ghs' => 2,//供
             'mall' => 3,//商城
-            'kmGhs' => 4,//昆明供
+            'kmGhs' => 4,//昆明供
         ],
         //订单发起方,与ptStyle一致
         'cgStyle' => [
             'hd' => 1,//零售花店
-            'ghs' => 2,//供
+            'ghs' => 2,//供
             'mall' => 3,//商城
-            'kmGhs' => 4,//基地供
+            'kmGhs' => 4,//基地供
         ],
 
         //结帐方式
         'clearStyle' => [
-            'hd2Gys' => 1,//零售主动供商结帐
-            'gys2Hd' => 2,//供商要求花店结帐
-            'gys2KmGys' => 3,//供应商向昆明供应商结帐
-            'kmGys2gys' => 4,//昆明供应商向供应商结账
+            'hd2Gys' => 1,//零售主动供商结帐
+            'gys2Hd' => 2,//供商要求花店结帐
+            'gys2KmGys' => 3,//供货商向昆明供货商结帐
+            'kmGys2gys' => 4,//昆明供货商向供货商结账
         ],
 
         'merchantStatus' => ['checking' => 0, 'pass' => 1, 'noPass' => 2, 'freeze' => 3, 'unfreeze' => 4, 'shut' => 5],
@@ -198,7 +198,7 @@ class dict
             'xhApplyOrder' => ['id' => 7, 'name' => 'xhApplyOrder'],
             'xhMergeUser' => ['id' => 8, 'name' => 'xhMergeUser'],
             'xhRenew' => ['id' => 9, 'name' => 'xhRenew'],
-            //供商订单
+            //供商订单
             'xhGhsOrder' => ['id' => 10, 'name' => 'xhGhsOrder'],
             //零售采购
             'xhPurchase' => ['id' => 11, 'name' => 'xhPurchase'],
@@ -206,28 +206,28 @@ class dict
             'pxApply' => ['id' => 12, 'name' => 'pxApply'],
             //花店采购结算
             'hdPurchaseClear' => ['id' => 20, 'name' => 'hdPurchaseClear'],
-            //供商采购
+            //供商采购
             'ghsPurchase' => ['id' => 25, 'name' => 'ghsPurchase'],
-            //供商出库
+            //供商出库
             'ghsCheckOut' => ['id' => 26, 'name' => 'ghsCheckOut'],
-            //供商入库
+            //供商入库
             'ghsCheckIn' => ['id' => 27, 'name' => 'ghsCheckIn'],
             'usePtCoupon' => ['id' => 30, 'name' => 'usePtCoupon'],
             'wastage' => ['id' => 35, 'name' => 'wastage'],
             //零售采购退款
             'cgRefund' => ['id' => 38, 'name' => 'cgRefund'],
-            //供商销售退款
+            //供商销售退款
             'saleRefund' => ['id' => 40, 'name' => 'saleRefund'],
             'pd' => ['id' => 45, 'name' => 'pd'],
-            //供商的佣金 lqh  2021.12.11
+            //供商的佣金 lqh  2021.12.11
             'brokerage' => ['id' => 46, 'name' => 'brokerage'],
-            //供商销售单对账
+            //供商销售单对账
             'ghsXsClear' => ['id' => 20, 'name' => 'ghsXsClear'],
-            //城市供商的预订单多付退款
+            //城市供商的预订单多付退款
             'ghsBookRefund' => ['id' => 48, 'name' => 'ghsBookRefund'],
             //花店预订退款
             'hdBookRefund' => ['id' => 50, 'name' => 'hdBookRefund'],
-            //城市供商的预订单少付补款
+            //城市供商的预订单少付补款
             'ghsBookOrderGetBack' => ['id' => 51, 'name' => 'ghsBookOrderGetBack'],
             //花店预订补尾款
             'hdBookFinalPay' => ['id' => 52, 'name' => 'hdBookFinalPay'],

+ 1 - 1
common/components/imgUtil.php

@@ -16,7 +16,7 @@ class imgUtil
     //获取图片路径的前缀 ssh 2021.3.12
     public static function getPrefix()
     {
-        //$style 1花店 2供商 3商城
+        //$style 1花店 2供商 3商城
         $style = Yii::$app->params['ptStyle'];
         if ($style == 2) {
             return Yii::$app->params['ghsImgHost'];

+ 1 - 1
common/components/miniUtil.php

@@ -723,7 +723,7 @@ class miniUtil
                     }
 
                 } elseif ($ptStyle == 2) {
-                    //供
+                    //供
                     $wxMiniBaseId = isset($open['wxMiniBaseId']) ? $open['wxMiniBaseId'] : 0;
                     if (!empty($wxMiniBaseId)) {
                         WxMiniBaseService::updateById($wxMiniBaseId, $uData);

+ 7 - 7
common/components/orderSn.php

@@ -23,7 +23,7 @@ use yii\imagine\Image;
 class orderSn
 {
 
-    //供商订单号生成 ssh 2021.1.19
+    //供商订单号生成 ssh 2021.1.19
     public static function getGhsOrderSn()
     {
         $prefix = 'XSD_CS';
@@ -53,7 +53,7 @@ class orderSn
         return $prefix . $id;
     }
 
-    //供商采购单号 ssh 2021.1.19
+    //供商采购单号 ssh 2021.1.19
     public static function getGhsPurchaseSn()
     {
         $prefix = 'PH_CS';
@@ -68,7 +68,7 @@ class orderSn
         return $prefix . $id;
     }
 
-    //供商盘点单号 ssh 2021.1.19
+    //供商盘点单号 ssh 2021.1.19
     public static function getGhsCheckSn()
     {
         $prefix = 'PD_CS';
@@ -113,7 +113,7 @@ class orderSn
         return $prefix . $id;
     }
 
-    //供商入库订单号 lqh 2021.1.23
+    //供商入库订单号 lqh 2021.1.23
     public static function getGhsStockInSn()
     {
         $prefix = 'RK_CS';
@@ -128,7 +128,7 @@ class orderSn
         return $prefix . $id;
     }
 
-    //供商出库订单号 lqh 2021.1.23
+    //供商出库订单号 lqh 2021.1.23
     public static function getGhsStockOutSn()
     {
         $prefix = 'CK_CS';
@@ -158,7 +158,7 @@ class orderSn
         return $prefix . $id;
     }
 
-    //供商批量结算订单号 ssh 2021.3.15
+    //供商批量结算订单号 ssh 2021.3.15
     public static function getGhsOrderClearSn()
     {
         // BOC batchOrderClear
@@ -220,7 +220,7 @@ class orderSn
     }
 
 
-    //供商报损订单号 lqh 2021.6.211
+    //供商报损订单号 lqh 2021.6.211
     public static function getGhsStockWastageSn()
     {
         $prefix = 'WT_CS';

+ 5 - 5
common/components/wxUtil.php

@@ -652,7 +652,7 @@ class wxUtil
                 $uData['wxAccessToken'] = $wxAccessToken;
                 $uData['wxAccessTokenTime'] = date("Y-m-d H:i:s", (time() + $expires_in - 100));
                 if (in_array($isOpen, [1, 2, 3])) {
-                    //零售、供商和商城
+                    //零售、供商和商城
                     $wxBaseId = $open['wxBaseId'] ?? 0;
                     if (!empty($wxBaseId)) {
                         WxBaseService::updateById($wxBaseId, $uData);
@@ -1258,12 +1258,12 @@ class wxUtil
         $currentHost = Yii::$app->params['hdHost'];
         $imgHost = Yii::$app->params['hdImgHost'];
         if ($isOpen == 2) {
-            //供
+            //供
             $currentHost = Yii::$app->params['ghsHost'];
             $imgHost = Yii::$app->params['ghsImgHost'];
         }
         if ($isOpen == 3) {
-            //供
+            //供
             $currentHost = Yii::$app->params['mallHost'];
             $imgHost = Yii::$app->params['mallImgHost'];
         }
@@ -1306,11 +1306,11 @@ class wxUtil
         //零售
         $currentHost = Yii::$app->params['hdHost'];
         if ($isOpen == 2) {
-            //供
+            //供
             $currentHost = Yii::$app->params['ghsHost'];
         }
         if ($isOpen == 3) {
-            //供
+            //供
             $currentHost = Yii::$app->params['mallHost'];
         }
         $has = strpos($currentHost, 'https');

+ 2 - 2
common/services/xhPayToolService.php

@@ -58,7 +58,7 @@ class xhPayToolService
         return self::basePay($callbackParams, $orderSn, $totalFee, $capitalType, $couponId, $payWay);
     }
 
-    //供商订单支付成功 ssh 2021.3.15
+    //供商订单支付成功 ssh 2021.3.15
     public static function ghsOrderPay($transaction, $callbackParams, $orderSn, $totalFee, $capitalType, $couponId, $payWay, $alipayParams)
     {
         $order = \bizGhs\order\classes\OrderClass::getByCondition(['orderSn' => $orderSn]);
@@ -153,7 +153,7 @@ class xhPayToolService
                     $order = xhApplyOrderService::getById($orderSn);
                     break;
                 case $capitalTypeList['xhGhsOrder']['id']:
-                    //供商订单
+                    //供商订单
                     return self::ghsOrderPay($transaction, $callbackParams, $orderSn, $totalFee, $capitalType, $couponId, $payWay, $alipayParams);
                     Yii::$app->end();
                     break;

+ 6 - 6
console/controllers/CustomController.php

@@ -74,15 +74,15 @@ class CustomController extends Controller
                             }
                         }
                         if ($ghsOrderDebtAmount < 0 || $hdCgOrderDebtAmount < 0) {
-                            noticeUtil::push("!!!!!!!供商 {$ghsId}  客户id {$customId} 出现负数 $ghsOrderDebtAmount $hdCgOrderDebtAmount", '15280215347');
-                            echo "@@@@@@@@@@@@@供商 {$ghsId}  客户id {$customId} 出现负数 $ghsOrderDebtAmount $hdCgOrderDebtAmount \n";
+                            noticeUtil::push("!!!!!!!供商 {$ghsId}  客户id {$customId} 出现负数 $ghsOrderDebtAmount $hdCgOrderDebtAmount", '15280215347');
+                            echo "@@@@@@@@@@@@@供商 {$ghsId}  客户id {$customId} 出现负数 $ghsOrderDebtAmount $hdCgOrderDebtAmount \n";
                         }
                         $ghsOrderDebtAmount = floatval($ghsOrderDebtAmount);
                         $hdCgOrderDebtAmount = floatval($hdCgOrderDebtAmount);
 
                         if ($ghsOrderDebtAmount != $hdCgOrderDebtAmount) {
-                            noticeUtil::push("!!!!!!!供商 {$ghsId}  客户id {$customId} 二边欠款单总金额不一致", '15280215347');
-                            echo "---------供商 {$ghsId}  客户id {$customId} 二边 欠款单 总金额 不一致 {$ghsOrderDebtAmount} {$hdCgOrderDebtAmount} \n";
+                            noticeUtil::push("!!!!!!!供商 {$ghsId}  客户id {$customId} 二边欠款单总金额不一致", '15280215347');
+                            echo "---------供商 {$ghsId}  客户id {$customId} 二边 欠款单 总金额 不一致 {$ghsOrderDebtAmount} {$hdCgOrderDebtAmount} \n";
                             continue;
                         }
 
@@ -101,9 +101,9 @@ class CustomController extends Controller
                         }
 
                         if ($ghsSaveDebtAmount != $hdCgOrderDebtAmount) {
-                            echo "#########欠供商 {$ghsId}  和 订单总额 不一致 $ghsSaveDebtAmount $hdCgOrderDebtAmount \n";
+                            echo "#########欠供商 {$ghsId}  和 订单总额 不一致 $ghsSaveDebtAmount $hdCgOrderDebtAmount \n";
 
-                            noticeUtil::push("#########欠供商 {$ghsId} 金额 和 订单总合 不一致 $ghsSaveDebtAmount $hdCgOrderDebtAmount ", '15280215347');
+                            noticeUtil::push("#########欠供商 {$ghsId} 金额 和 订单总合 不一致 $ghsSaveDebtAmount $hdCgOrderDebtAmount ", '15280215347');
 
 //                        echo "已更:".$hdCgOrderDebtAmount.' '.$ghsOrderDebtAmount."\n";
 //                        \bizHd\ghs\classes\GhsClass::updateById($ghsId, ['debtAmount' => $hdCgOrderDebtAmount]);

+ 1 - 1
console/controllers/InitController.php

@@ -48,7 +48,7 @@ class InitController extends Controller
         }
     }
 
-    //供商和花店历史订单和历史结账单 payStatus payTime更新
+    //供商和花店历史订单和历史结账单 payStatus payTime更新
     // ./yii init/pay-status
     public function actionPayStatus()
     {

+ 6 - 6
console/controllers/ItemController.php

@@ -224,7 +224,7 @@ class ItemController extends Controller
         echo "done";
     }
 
-    //供商初始化 ./yii item/gys  ./yii.bat item/gys
+    //供商初始化 ./yii item/gys  ./yii.bat item/gys
     public function actionGys()
     {
         $phpExcelFile = Yii::getAlias("@vendor/phpoffice/phpexcel/");
@@ -315,7 +315,7 @@ class ItemController extends Controller
                         'style' => dict::getDict('ptStyle', 'kmGhs'),
                         'address' => $address,
                         'status' => ApplyClass::STATUS_PASS,
-                        'replace' => 1,//1表示供应商添加的客户或供应
+                        'replace' => 1,//1表示供货商添加的客户或供货
                     ];
                     $apply = ApplyService::replaceKmGhs($applyData);
                     $id = $apply['id'] ?? 0;
@@ -326,15 +326,15 @@ class ItemController extends Controller
                     $currentShopId = $currentShop->id ?? 0;
                     ApplyClass::updateById($id, ['sjId' => $currentSjId, 'shopId' => $currentShopId]);
                     if (empty($currentShopId)) {
-                        echo "{$mobile} 供商添加失败 \n ";
+                        echo "{$mobile} 供商添加失败 \n ";
                         continue;
                     }
                     GhsClass::build($currentShopId, $shopId, 1);
                     $transaction->commit();
-                    echo "{$mobile} 供商添加成功!\n";
+                    echo "{$mobile} 供商添加成功!\n";
                 } catch (\Exception $exception) {
                     $transaction->rollBack();
-                    echo "{$mobile} 供商添加失败,原因:" . $exception->getMessage() . "\n";
+                    echo "{$mobile} 供商添加失败,原因:" . $exception->getMessage() . "\n";
                 }
 
             }
@@ -444,7 +444,7 @@ class ItemController extends Controller
                         'dist' => $dist,
                         'address' => $address,
                         'status' => ApplyClass::STATUS_PASS,
-                        'replace' => 1,//1表示供商添加的客户
+                        'replace' => 1,//1表示供商添加的客户
                     ];
                     $apply = ApplyService::replaceRetail($applyData);
                     $id = $apply['id'] ?? 0;

+ 2 - 2
console/controllers/PurchaseController.php

@@ -70,7 +70,7 @@ class PurchaseController extends Controller
     //待付款订单自动变成欠款订单
     public function actionSetDebtOrder()
     {
-        //采购单由供商发起的!!!!!
+        //采购单由供商发起的!!!!!
         $ghsInvite = dict::getDict('cgStyle', 'ghs');
         $query = new \yii\db\Query();
         $query->from(Purchase::tableName());
@@ -94,7 +94,7 @@ class PurchaseController extends Controller
                 $orderSn = $purchase['orderSn'] ?? '';
                 try {
                     $current = PurchaseClass::getById($id, true);
-                    //供商发起的记欠款
+                    //供商发起的记欠款
                     PurchaseService::debt($current);
                     $transaction->commit();
                     noticeUtil::push("采购单已经变更为欠款。订单号:{$orderSn}", '15280215347');

+ 2 - 2
doc/说明.md

@@ -6,12 +6,12 @@
 saas.huaml.com (平台)        	api.saas.huaml.com
 shop.huaml.com(花店后台)      api.shop.huaml.com
 花美玲 花店小程序   		    api.shop.huaml.com
-花掌柜 供商小程序			    api.ghs.huaml.com
+花掌柜 供商小程序			    api.ghs.huaml.com
 
 线上:销花宝 -- 花卉宝
 
 开发:花掌柜 -- 花美玲
 
-isOpen 1 表示零售 2表示供
+isOpen 1 表示零售 2表示供
 
 ````