作者 耿培杰

修改接口

@@ -462,7 +462,7 @@ class Order extends Api @@ -462,7 +462,7 @@ class Order extends Api
462 462
463 if ($res1 && $res2 && $res4 && (empty($res3) || $res3)) { 463 if ($res1 && $res2 && $res4 && (empty($res3) || $res3)) {
464 Db::commit(); 464 Db::commit();
465 - $this->success('success'); 465 + $this->success('success',['order_id'=>$res1,'order_num'=>$orderData['order_num']]);
466 } else { 466 } else {
467 $this->error('error'); 467 $this->error('error');
468 } 468 }
@@ -837,7 +837,7 @@ class Order extends Api @@ -837,7 +837,7 @@ class Order extends Api
837 837
838 if ($res1 && $res2 && $res4 && (empty($res3) || $res3)) { 838 if ($res1 && $res2 && $res4 && (empty($res3) || $res3)) {
839 Db::commit(); 839 Db::commit();
840 - $this->success('success'); 840 + $this->success('success',['order_id'=>$res1,'order_num'=>$orderData['order_num']]);
841 } else { 841 } else {
842 $this->error('error'); 842 $this->error('error');
843 } 843 }
@@ -1148,7 +1148,7 @@ class Order extends Api @@ -1148,7 +1148,7 @@ class Order extends Api
1148 1148
1149 if ($res1 && $res2 && $res4 && (empty($res3) || $res3)) { 1149 if ($res1 && $res2 && $res4 && (empty($res3) || $res3)) {
1150 Db::commit(); 1150 Db::commit();
1151 - $this->success('success'); 1151 + $this->success('success',['order_id'=>$res1,'order_num'=>$orderData['order_num']]);
1152 } else { 1152 } else {
1153 $this->error('error'); 1153 $this->error('error');
1154 } 1154 }