wugg hai 5 meses
pai
achega
f0bd44d38c

+ 1 - 1
app/cxinv/controller/Payinv.php

@@ -12,7 +12,7 @@ use think\App;
 use think\facade\Validate;
 class Payinv extends Base{
     public function __construct(App $app) {
-        $this->noLogin=["*"];
+
         parent::__construct($app);
         $this->model =new PayInvoice();
     }

+ 1 - 1
app/cxinv/model/InvoiceOrder.php

@@ -71,7 +71,7 @@ class InvoiceOrder extends Base{
     }
 
     //回票流程结束未认证 状态3  退票认证结束 状态4
-    public static function onAfterUpdate( Model $model){
+    public static function onAfterWrite( Model $model){
       $id= $model->id;
       Log::info('InvoiceOrder跟前数据:'.json_encode($model->toArray(),JSON_UNESCAPED_UNICODE));
       $info = InvoiceOrder::where(['id'=>$id])->findOrEmpty();

+ 1 - 1
app/cxinv/model/PaymentOrder.php

@@ -53,7 +53,7 @@ class PaymentOrder extends Base{
                 $cgdinfo->wpay_fee= $cgdinfo->wpay_fee+$model->rela_fee;
                 break;
                 default:
-                 return;
+                return;
          }
          $cgdinfo->save();
     }