Просмотр исходного кода

Merge branch 'dev_wf' of wugg/phpstock into version1.5

wufeng 2 лет назад
Родитель
Сommit
75230f74da

+ 8 - 5
app/abutment/controller/Consult.php

@@ -958,7 +958,9 @@ class Consult extends HomeBaseController
                                             "order_type" => 'PRO',
                                             "order_code" => $projetc['projectNo'],
                                             "order_id" => $projetc['id'],
-                                            "order_status" => 2, "before_status" => 1
+                                            "order_status" => 2,
+                                            "before_status" => 1,
+                                            'holder_id'=>$projetc['createrid']
                                         ]);
                                     }
                                 }
@@ -1186,9 +1188,9 @@ class Consult extends HomeBaseController
 
                                 if ($count == 0) {
                                     //先查询是否存在status==1的项目,有的话再更新,否则跳过
-                                    $project_id = Db::name("project")->where(["projectNo" => $projectinfo['projectNo'], "status" => 1])->value('id', 0);
+                                    $project_id = Db::name("project")->where(["projectNo" => $projectinfo['projectNo'], "status" => 1])->field('id,createrid')->findOrEmpty();
                                     if ($project_id) {
-                                        $proc = Db::name("project")->where(["id" => $project_id])->update(["status" => 2, "updatetime" => date("Y-m-d H:i:s")]);
+                                        $proc = Db::name("project")->where(["id" => $project_id['id']])->update(["status" => 2, "updatetime" => date("Y-m-d H:i:s")]);
                                         if ($proc == false) {
                                             Db::rollback();
                                             return json_show(1006, "项目反馈失败");
@@ -1204,9 +1206,10 @@ class Consult extends HomeBaseController
                                             ProcessOrder::AddProcess(['id' => $createrid, 'nickname' => $creater], [
                                                     "order_type" => 'PRO',
                                                     "order_code" => $projectinfo['projectNo'],
-                                                    "order_id" => $project_id,
+                                                    "order_id" => $project_id['id'],
                                                     "order_status" => 2,
-                                                    "before_status" => 1
+                                                    "before_status" => 1,
+                                                    'holder_id'=>$project_id['createrid']
                                                 ]
                                             );
                                         }

+ 15 - 11
app/admin/controller/After.php

@@ -131,7 +131,7 @@ class After extends Base
 
                 Db::execute("UPDATE `wsm_standing_book` SET `returnCode`=CONCAT(IFNULL(`returnCode`,''),',{$returnCode}'),`updatetime`='" . date('Y-m-d H:i:s') . "' WHERE FIND_IN_SET('{$outCode}',`outCode`)");
 
-                $process = ["order_code" => $returnCode, "order_id" => $create, "order_status" => $in['status'], "order_type" => 'SHD', "before_status" => 1];
+                $process = ["order_code" => $returnCode, "order_id" => $create, "order_status" => $in['status'], "order_type" => 'SHD', "before_status" => 1,'holder_id'=>$in['apply_id']];
                     ProcessOrder::AddProcess($token,$process);
                     Db::commit();
                     return app_show(0,"售后申请单新建成功",["returnCode"=>$returnCode]);
@@ -408,9 +408,9 @@ class After extends Base
                 $order = ["order_code"=>$info['returnCode'],"status"=>$var,"action_remark"=>'',"action_type"=>"edit"];
                 ActionLog::logAdd($this->post['token'],$order,"SHD", $info['status'],$this->post);
 
-                if (in_array($status, [2, 3])) $process = ["order_code" => $info['returnCode'], "order_id" => $info['id'], "order_status" => $status, "order_type" => "SHD", "before_status" => $var, 'wait_id' => $info['cgderid'], 'wait_name' => $info['cgder']];
-                elseif ($status == 4) $process = ["order_code" => $info['returnCode'], "order_id" => $info['id'], "order_status" => $status, "order_type" => "SHD", "before_status" => $var, 'wait_id' => $info['apply_id'], 'wait_name' => $info['apply_name']];
-                else $process = ["order_code" => $info['returnCode'], "order_id" => $info['id'], "order_status" => $status, "order_type" => "SHD", "before_status" => $var];
+                if (in_array($status, [2, 3])) $process = ["order_code" => $info['returnCode'], "order_id" => $info['id'], "order_status" => $status, "order_type" => "SHD", "before_status" => $var, 'wait_id' => $info['cgderid'], 'wait_name' => $info['cgder'],'holder_id'=>$info['cgderid']];
+                elseif ($status == 4) $process = ["order_code" => $info['returnCode'], "order_id" => $info['id'], "order_status" => $status, "order_type" => "SHD", "before_status" => $var, 'wait_id' => $info['apply_id'], 'wait_name' => $info['apply_name'],'holder_id'=>$info['apply_id']];
+                else $process = ["order_code" => $info['returnCode'], "order_id" => $info['id'], "order_status" => $status, "order_type" => "SHD", "before_status" => $var,'holder_id'=>$info['apply_id']];
 
                 ProcessOrder::AddProcess($this->post['token'],$process);
                 Db::commit();
@@ -515,7 +515,9 @@ class After extends Base
                         "order_type" => 'SHD',
                         "order_code" => $info['returnCode'],//销售单code
                         "order_id" => $info['id'],
-                        "order_status" => $info['status'],"before_status"=>$old_info_status
+                        "order_status" => $info['status'],
+                        "before_status"=>$old_info_status,
+                        'holder_id'=>$info['apply_id']
                     ]);
 
                     Db::commit();
@@ -631,7 +633,7 @@ class After extends Base
                 if($in){
                     $order = ["order_code"=>$info['returnCode'],"status"=>$var,"action_remark"=>'',"action_type"=>"edit"];
                     ActionLog::logAdd($this->post['token'],$order,"SHD",$info['status'],$this->post);
-                    $process=["order_code"=>$info['returnCode'],"order_id"=>$info['id'],"order_status"=>$info['status'],"order_type"=>"SHD","before_status"=>$var];
+                    $process=["order_code"=>$info['returnCode'],"order_id"=>$info['id'],"order_status"=>$info['status'],"order_type"=>"SHD","before_status"=>$var,'holder_id'=>$info['apply_id']];
                     ProcessOrder::AddProcess($this->post['token'],$process);
                     Db::commit();
                     return app_show(0,"更新成功");
@@ -705,7 +707,7 @@ class After extends Base
             if($up){
                 $order = ["order_code"=>$info['orderCode'],"status"=>$str,"action_remark"=>'',"action_type"=>"edit"];
                 ActionLog::logAdd($this->post['token'],$order,"SHD",$info['status'],$this->post);
-                $process=["order_code"=>$info['returnCode'],"order_id"=>$info['id'],"order_status"=>$info['status'],"order_type"=>"SHD","before_status"=>$str];
+                $process=["order_code"=>$info['returnCode'],"order_id"=>$info['id'],"order_status"=>$info['status'],"order_type"=>"SHD","before_status"=>$str,'holder_id'=>$info['apply_id']];
                 ProcessOrder::AddProcess($this->post['token'],$process);
                 $in=Db::name("order_returninfo")->save($return_info);
                 if($in){
@@ -843,7 +845,7 @@ class After extends Base
                 if($in){
                     $order = ["order_code"=>$info['returnCode'],"status"=>$stat,"action_remark"=>'',"action_type"=>"edit"];
                     ActionLog::logAdd($this->post['token'],$order,"SHD", $info['status'],$this->post);
-                    $process=["order_code"=>$info['returnCode'],"order_id"=>$info['id'],"order_status"=>$info['status'],"SHD","before_status"=>$stat];
+                    $process=["order_code"=>$info['returnCode'],"order_id"=>$info['id'],"order_status"=>$info['status'],"SHD","before_status"=>$stat,'holder_id'=>$info['apply_id']];
                     ProcessOrder::AddProcess($this->post['token'],$process);
                     Db::commit();
                     return app_show(0,"更新成功");
@@ -1008,7 +1010,9 @@ class After extends Base
                         "order_type" => 'SHD',
                         "order_code" => $info['returnCode'],//销售单code
                         "order_id" => $info['id'],
-                        "order_status" => $info['status'],"before_status"=>$old_info_status
+                        "order_status" => $info['status'],
+                        "before_status"=>$old_info_status,
+                        'holder_id'=>$info['apply_id']
                     ]);
 
                     $thNo =makeNo("ST");
@@ -1168,7 +1172,7 @@ class After extends Base
         Db::startTrans();
         try {
 
-            $rs = Db::name('order_return')->field('id,status')->where([['returnCode', '=', $data['returnCode']], ['is_del', '=', 0], ['status', '<>', 8]])->find();
+            $rs = Db::name('order_return')->field('id,status,apply_id')->where([['returnCode', '=', $data['returnCode']], ['is_del', '=', 0], ['status', '<>', 8]])->find();
 
             if (!$rs) throw new Exception('该售后单记录不存在');
 
@@ -1179,7 +1183,7 @@ class After extends Base
 
             //记录日志
             ActionLog::logAdd($data['token'], ["order_code" => $data['returnCode'], "status" => $rs['status'], "action_remark" => '', "action_type" => "delete"], 'SHD', 8, $this->post);
-            ProcessOrder::AddProcess($this->post['token'], ["order_code" => $data['returnCode'], "order_id" => $rs['id'], "order_status" => 8, "order_type" => 'SHD',"before_status"=>$rs['status']]);
+            ProcessOrder::AddProcess($this->post['token'], ["order_code" => $data['returnCode'], "order_id" => $rs['id'], "order_status" => 8, "order_type" => 'SHD',"before_status"=>$rs['status'],'holder_id'=>$rs['apply_id']]);
 
             //提交
             Db::commit();

+ 4 - 2
app/admin/controller/Consult.php

@@ -1377,7 +1377,8 @@ class Consult extends Base
                     "order_code" => $bargainNo,
                     "order_id" => $int,
                     "order_status" =>0,
-                    "before_status"=>0
+                    "before_status"=>0,
+                    'holder_id'=>$data['createrid']
                 ]);
                 $odlstatus=$info['status'];
                 $info['status']=3;
@@ -1613,7 +1614,8 @@ class Consult extends Base
                     "action_remark" => '',//备注
                     "action_type" => "status"//新建create,编辑edit,更改状态status
                 ], "YJD", $info['status'], $info);
-                $process=["order_code"=>$bargainNo,"order_id"=>$info['id'],"order_status"=>$info['status'],"order_type"=>'YJD',"before_status"=>$ra_status];
+                $process=["order_code"=>$bargainNo,"order_id"=>$info['id'],"order_status"=>$info['status'],"order_type"=>'YJD',"before_status"=>$ra_status,'holder_id'=>$info['createrid']
+                ];
                 ProcessOrder::AddProcess($token,$process);
                 if($info['status']==1||$info['status']==3||$info['status']==8||$info['status']==6||$info['status']==9||$info['status']==10||$info['status']==11){
                     $bidstatus=$bids['status'];

+ 13 - 5
app/admin/controller/Project.php

@@ -141,7 +141,7 @@ class Project extends Base
                             "action_remark" => '',//备注
                             "action_type" => "create"//新建create,编辑edit,更改状态status
                         ], "PRO", 1, $this->post);
-                        $process = ["order_code" => $projectNo, "order_id" => $pro, "order_status" =>1, "order_type" =>"PRO","before_status"=>1];
+                        $process = ["order_code" => $projectNo, "order_id" => $pro, "order_status" =>1, "order_type" =>"PRO","before_status"=>1,'holder_id'=>$data['createrid']];
                         ProcessOrder::AddProcess(['id'=>$createrid,'nickname'=>$creater], $process);
 
                     //台账记录
@@ -295,7 +295,9 @@ class Project extends Base
                                 "order_type"=>'PRO',
                                 "order_code"=>$projectinfo['projectNo'],
                                 "order_id"=>$project['id'],//这里更新是根据编码更新的,没有主键id
-                                "order_status"=>2,"before_status"=>1
+                                "order_status"=>2,
+                                "before_status"=>1,
+                                'holder_id'=>$project['createrid']
                             ]);
 
                             Db::commit();
@@ -695,7 +697,9 @@ class Project extends Base
                             "order_type" => 'PRO',
                             "order_code" => $projectNo,
                             "order_id" => $info['id'],
-                            "order_status" => 4,"before_status"=>$old_project_status
+                            "order_status" => 4,
+                            "before_status"=>$old_project_status,
+                            'holder_id'=>$info['createrid']
                         ]);
                         Db::commit();
                         return app_show(0,"方案制作成功",["planNo"=>$planNo]);
@@ -874,7 +878,9 @@ class Project extends Base
                                     "order_type" => 'PRO',
                                     "order_code" =>$value['projectNo'],
                                     "order_id" => $poject['id'],
-                                    "order_status" => 3,"before_status"=>$poject['status']
+                                    "order_status" => 3,
+                                    "before_status"=>$poject['status'],
+                                    'holder_id'=>$poject['createrid']
                                 ]);
                             }
                         }
@@ -949,7 +955,9 @@ class Project extends Base
                             "order_type" => 'PRO',
                             "order_code" =>$value,
                             "order_id" => $poject['id'],
-                            "order_status" => 5,"before_status"=>4
+                            "order_status" => 5,
+                            "before_status"=>4,
+                            'holder_id'=>$poject['createrid']
                         ]);
                     }
 

+ 1 - 1
app/admin/controller/Purch.php

@@ -800,7 +800,7 @@ class Purch extends Base
                     }
                     $sto = ["order_code"=>$orderCode['orderCode'],"status"=>1,"action_remark"=>'',"action_type"=>"create"];
                     ActionLog::logAdd($this->post['token'],$sto,"XSGCD",1,$data);
-                    $process=["order_code"=>$orderCode['orderCode'],"order_id"=>$cgd,"order_status"=>1,"order_type"=>'XSGCD',"before_status"=>1];
+                    $process=["order_code"=>$orderCode['orderCode'],"order_id"=>$cgd,"order_status"=>1,"order_type"=>'XSGCD',"before_status"=>1,'holder_id'=>$order['apply_id']];
                     ProcessOrder::AddProcess($this->post['token'],$process);
 
                     $update_standing_book_data['sale_diff_id']=$cgd;//工差单id

+ 5 - 6
app/admin/controller/Reorder.php

@@ -102,7 +102,7 @@ class Reorder extends Base
             if($create>0){
                 $stn = ["order_code"=>$returnCode,"status"=>0,"action_remark"=>'',"action_type"=>"create"];
                 ActionLog::logAdd($this->post['token'],$stn,"XSTHD",$in['status'],$in);
-                $process=["order_code"=>$returnCode,"order_id"=>$create,"order_status"=>$in['status'],"order_type"=>'XSTHD',"before_status"=>0];
+                $process=["order_code"=>$returnCode,"order_id"=>$create,"order_status"=>$in['status'],"order_type"=>'XSTHD',"before_status"=>0,'holder_id'=>$in['apply_id']];
                 ProcessOrder::AddProcess($this->post['token'],$process);
 
                 //维护台账信息
@@ -594,8 +594,7 @@ class Reorder extends Base
      * @throws \think\db\exception\ModelNotFoundException
      */
     public function exam(){
-        $code =  isset($this->post['returnCode']) && $this->post['returnCode'] !=="" ? trim($this->post['returnCode'])
-            :"";
+        $code =  isset($this->post['returnCode']) && $this->post['returnCode'] !=="" ? trim($this->post['returnCode']):"";
         if($code==""){
             return error_show(1004,"参数returnCode不能为空");
         }
@@ -649,7 +648,7 @@ class Reorder extends Base
             $info["updatetime"]=date("Y-m-d H:i:s");
             $up = Db::name("sale_return")->save($info);
             if($up) {
-                $process = ["order_code" => $code, "order_id" => $info['id'], "order_status" => $status,  "order_type"=>"XSTHD",'before_status'=>$temp];
+                $process = ["order_code" => $code, "order_id" => $info['id'], "order_status" => $status,  "order_type"=>"XSTHD",'before_status'=>$temp,'holder_id'=>$info['apply_id']];
                 ProcessOrder::AddProcess($this->post['token'], $process);
                 $ste = ["order_code" => $code, "status" => $temp, "action_remark" => '', "action_type" => "status"];
                 ActionLog::logAdd($this->post['token'], $ste,  "XSTHD", $status, $info);
@@ -1057,7 +1056,7 @@ class Reorder extends Base
             ];
             $create = Db::name("sale_return")->insert($in,true);
             if($create>0) {
-                $process=["order_code"=>$returnCode,"order_id"=>$create,"order_status"=>0,"order_type"=>'XSTHD',"before_status"=>0];
+                $process=["order_code"=>$returnCode,"order_id"=>$create,"order_status"=>0,"order_type"=>'XSTHD',"before_status"=>0,'holder_id'=>$in['apply_id']];
                 ProcessOrder::AddProcess($this->post['token'],$process);
                 $ste = ["order_code"=>$returnCode,"status"=>0,"action_remark"=>'',
                     "action_type"=>"create"];
@@ -1185,7 +1184,7 @@ class Reorder extends Base
             if($create>0){
             	$stn = ["order_code"=>$returnCode,"status"=>0,"action_remark"=>'',"action_type"=>"create"];
                 ActionLog::logAdd(["id"=>$this->uid,"nickname"=>$this->uname],$stn,"XSTHD",$in['status'],$in);
-                $process=["order_code"=>$returnCode,"order_id"=>$create,"order_status"=>$in['status'],"order_type"=>'XSTHD',"before_status"=>0];
+                $process=["order_code"=>$returnCode,"order_id"=>$create,"order_status"=>$in['status'],"order_type"=>'XSTHD',"before_status"=>0,'holder_id'=>$in['apply_id']];
                 ProcessOrder::AddProcess(["id"=>$this->uid,"nickname"=>$this->uname],$process);
                   //维护台账信息
                 Db::execute("UPDATE `wsm_standing_book` SET `returnGoodCode`=CONCAT(IFNULL(`returnGoodCode`,''),',{$returnCode}'),`updatetime`='" . date('Y-m-d H:i:s') . "' WHERE `orderCode`='{$orderCode}'");

+ 5 - 4
app/admin/controller/Sale.php

@@ -1423,7 +1423,9 @@ class Sale extends Base
                     "order_type" => 'PRO',
                     "order_code" => $project['projectNo'],
                     "order_id" => $project['id'],
-                    "order_status" => 6, "before_status" => $old_project_status
+                    "order_status" => 6,
+                    "before_status" => $old_project_status,
+                    'holder_id'=>$project['createrid']
                 ]);
             }
             //修改状态,添加待办,只记录动作
@@ -3097,7 +3099,7 @@ class Sale extends Base
             if ($up) {
                 $stx = ["order_code" => $info["orderCode"], "status" => $item, "action_remark" => '', "action_type" => "edit"];
                 ActionLog::logAdd(['id'=>$this->uid,'nickname'=>$this->uname], $stx, "XSGCD", $info['status'], $info);
-                $order = ["order_type" => "XSGCD", "order_code" => $info["orderCode"], "order_id" => $info['id'], "order_status" => $info['status'], "before_status" => $item];
+                $order = ["order_type" => "XSGCD", "order_code" => $info["orderCode"], "order_id" => $info['id'], "order_status" => $info['status'], "before_status" => $item,'holder_id'=>$sale['apply_id']];
                 ProcessOrder::AddProcess(['id'=>$this->uid,'nickname'=>$this->uname], $order);
                 $upda = [
                     "status" => $status,
@@ -3188,8 +3190,7 @@ class Sale extends Base
             if ($up) {
                 $stx = ["order_code" => $info["orderCode"], "status" => $ite, "action_remark" => '', "action_type" => "status"];
                 ActionLog::logAdd($this->post['token'], $stx, "XSGCD", $status, $info);
-                $order = ["order_type" => "XSGCD", "order_code" => $info["orderCode"], "order_id" => $info['id'],
-                    "order_status" => $status, "before_status" => $ite];
+                $order = ["order_type" => "XSGCD", "order_code" => $info["orderCode"], "order_id" => $info['id'],"order_status" => $status, "before_status" => $ite,'holder_id'=>$sale['apply_id']];
                 ProcessOrder::AddProcess($this->post['token'], $order);
                 $cgdup = Db::name("purchease_diff")->where(["id" => $info['cgd_diffid']])->save($upda);
                 if ($cgdup) {

+ 2 - 2
app/admin/controller/Version.php

@@ -332,7 +332,7 @@ class Version extends BaseController
                                 "action_type" => "edit"//新建create,编辑edit更改状态status
                             ], "PRO", 3, ["status" => 3, "updatetime" => date("Y-m-d H:i:s")]);
 
-                            $process = ["order_code" => $value['projectNo'], "order_id" => $pr['id'], "order_status" =>3, "order_type" => 'PRO',"before_status"=> $pr['status']];
+                            $process = ["order_code" => $value['projectNo'], "order_id" => $pr['id'], "order_status" =>3, "order_type" => 'PRO',"before_status"=> $pr['status'],'holder_id'=>$pr['createrid']];
                             ProcessOrder::AddProcess(['id'=>0,"nickname"=>'客户'], $process);
                         }
                     }else{
@@ -411,7 +411,7 @@ class Version extends BaseController
                     "action_type" => "edit"//新建create,编辑edit更改状态status
                 ], "PRO", 5, ["status" => 5, "updatetime" => date("Y-m-d H:i:s")]);
 
-                $process = ["order_code" => $pr['projectNo'], "order_id" => $pr['id'], "order_status" =>5, "order_type" => 'PRO',"before_status"=> $pr['status']];
+                $process = ["order_code" => $pr['projectNo'], "order_id" => $pr['id'], "order_status" =>5, "order_type" => 'PRO',"before_status"=> $pr['status'],'holder_id'=>$pr['createrid']];
                 ProcessOrder::AddProcess(['id'=>0,"nickname"=>'客户'], $process);
                     Db::commit();
                     return app_show(0, "方案数据修改成功");

+ 2 - 1
app/command/handleYzOrderData.php

@@ -473,7 +473,8 @@ class handleYzOrderData extends Command
                                     "order_code" => $outCode,//出库单号
                                     "order_id" => 0,
                                     "order_status" => 0,
-                                    "before_status" => 0
+                                    "before_status" => 0,
+                                    'holder_id'=>$data['apply_id']
                                 ]);
 
 //                                $standing_book_data['outCode'] = $outCode;

+ 8 - 6
app/youzan/logic/Goodup.php

@@ -40,7 +40,7 @@ class Goodup
                 //校验是否存在起订量为1的信息
                 if (empty($all_nake[$value['spuCode']])) {
                     $god = Db::name("good_basic")
-                        ->field('id,good_name,good_thumb_img')
+                        ->field('id,good_name,good_thumb_img,chargerid')
                         ->where(["spuCode" => $value['spuCode'], "is_del" => 0])
                         ->find();
                     if ($god) {
@@ -80,7 +80,7 @@ class Goodup
                 $ist = isset($all_list[$value['spuCode']]) ? $all_list[$value['spuCode']] : [];
                 if ($ist) {
                     $god = Db::name("good_basic")
-                        ->field('id,good_name,good_thumb_img')
+                        ->field('id,good_name,good_thumb_img,chargerid')
                         ->where(["spuCode" => $value['spuCode'], "is_del" => 0])
                         ->find();
                     if ($god) {
@@ -169,7 +169,8 @@ class Goodup
                         "order_code" => $skuCode,
                         "order_id" => $create,
                         "order_status" => $tmp['exam_status'],
-                        "before_status" => $tmp['exam_status']
+                        "before_status" => $tmp['exam_status'],
+                        'holder_id'=>$god['chargerid'],
                     ]);
                     $iso = Db::name("good")->where(["spuCode" => $value['spuCode'], "is_del" => 0])->find();
                     if ($iso == false) {
@@ -210,7 +211,7 @@ class Goodup
             $db = new PlatformYouzan();
 
             $rs = $db
-                ->field('a.id,a.platform_id,a.spuCode,a.skuCode,a.exam_status,gb.good_name,gb.weight,gb.good_img,gb.cat_id,gb.good_info_img')
+                ->field('a.id,a.platform_id,a.spuCode,a.skuCode,a.exam_status,gb.good_name,gb.weight,gb.good_img,gb.cat_id,gb.good_info_img,gb.chargerid')
                 ->alias('a')
                 ->where(['a.id' => $platform_youzan_id, 'a.is_del' => $db::$del_normal])
                 ->leftJoin('good_basic gb', 'gb.spuCode=a.spuCode')
@@ -221,7 +222,7 @@ class Goodup
 
             $old_exam_status = $rs->exam_status;
 
-            $userinfo = GetUserInfo($data['token']);
+//            $userinfo = GetUserInfo($data['token']);
 
             //platform_youzan 更新信息
             $update_data = [
@@ -364,7 +365,8 @@ class Goodup
                 "order_code" => $rs->skuCode,//咨询单详情编号
                 "order_id" => $rs->id,
                 "order_status" => $update_data['exam_status'],
-                "before_status" => $old_exam_status
+                "before_status" => $old_exam_status,
+                'holder_id'=>$rs->chargerid,
             ]);
 
             if ($res) {

+ 1 - 1
app/youzan/logic/Order.php

@@ -61,7 +61,7 @@ class Order
                 "order_code" => $res['data']['skuCode'],
                 "order_id" => $data['id'],
                 "order_status" => $data['status'],
-                "before_status" => $res['data']['old_status']
+                "before_status" => $res['data']['old_status'],
             ]);
 
             return app_show(0, '操作成功');