浏览代码

鱼塘主回调

Cherry 2 年之前
父节点
当前提交
8027b9483d
共有 2 个文件被更改,包括 282 次插入196 次删除
  1. 3 2
      application/api/controller/Notify.php
  2. 279 194
      public/api.html

+ 3 - 2
application/api/controller/Notify.php

@@ -277,7 +277,7 @@ class Notify extends Api
 
             //你可以在此编写订单逻辑
 //            $payamount = 0.01;
-//            $out_trade_no = 'RZ202302161602024840016';
+//            $out_trade_no = 'RZ202303201415186970067';
 //            $data = [];
 
             // 查询申请入驻记录
@@ -303,7 +303,8 @@ class Notify extends Api
                     $fishery_info->save($fishery_data);
 
                     //修改鱼塘状态
-                    \app\admin\model\Yutang::where('fishery_id', $fishery_info->id)->save(['status'=>2]);
+                    $yutang_model = new \app\admin\model\Yutang();
+                    $yutang_model->isUpdate(true,['fishery_id'=>$fishery_info->id])->save(['status'=>2]);
 
                     if($user->duanxin == 1) {
                         (new Sms())->apply_yutangzhu($user->mobile, $user->username);

文件差异内容过多而无法显示
+ 279 - 194
public/api.html


部分文件因为文件数量过多而无法显示