liugc vor 9 Monaten
Ursprung
Commit
9c1a7aa990

+ 10 - 1
app/common/controller/NotificTestController.php

@@ -7,6 +7,7 @@ use app\api\logic\PerformanceLogic;
 use app\api\logic\ServiceOrderLogic;
 use app\common\enum\PayEnum;
 use app\common\enum\worker\WorkerAccountLogEnum;
+use app\common\logic\ExternalPlatformLogic;
 use app\common\logic\PayNotifyLogic;
 use app\common\logic\WorkerAccountLogLogic;
 use app\common\model\external\ExternalPlatform;
@@ -21,8 +22,16 @@ use think\facade\Log;
 class NotificTestController extends BaseLikeAdminController
 {
     public array $notNeedLogin = ['addOnlineCustomerService','subOnlineCustomerService','getBusinessAllocationValue',
-        'customerSendMessage','assignBusinessToCustomer','customerClsMessage','getNotificList','getAllNotificList'];
+        'customerSendMessage','assignBusinessToCustomer','customerClsMessage','getNotificList','getAllNotificList','externalPlatformLogicTest'];
 
+    public function externalPlatformLogicTest(){
+        $prams = $this->request->param();
+        try {
+            dd(ExternalPlatformLogic::handleByScene($prams));
+        }catch(\Exception $e){
+            dd($e->getMessage());
+        }
+    }
 
     public function addOnlineCustomerService(){
         $prams = $this->request->param();

+ 1 - 1
app/common/logic/ExternalPlatformLogic.php

@@ -96,7 +96,7 @@ class ExternalPlatformLogic  extends BaseLogic
             if($model->isEmpty()){
                 throw new \Exception('工单不存在');
             }
-            if($model->external_platform_id = 0){
+            if($model->external_platform_id > 0){
                 $order_sns = \app\common\model\orders\RechargeOrder::where('work_id',$model->id)->column('sn');
                 $goods_payment_type = OrderGoods::whereIn('sn',$order_sns)->value('goods_payment_type');
                 if(in_array($goods_payment_type,['2','3'])) throw new \Exception('固定价无需分账处理');