3 Incheckningar 84ce4eefa0 ... 19c8feced4

Upphovsman SHA1 Meddelande Datum
  24753255@qq.com 19c8feced4 Merge branch 'testing' of http://gitz.zhixinhuixue.net:18880/zxhx/xiaoben-as2-php into testing 5 månader sedan
  24753255@qq.com 867b594127 Merge branch 'li_huaweicloud' into testing 5 månader sedan
  24753255@qq.com 1813149af7 ims 5 månader sedan
1 ändrade filer med 11 tillägg och 5 borttagningar
  1. 11 5
      protected/controllers/ImsSaleController.php

+ 11 - 5
protected/controllers/ImsSaleController.php

@@ -421,7 +421,8 @@ class ImsSaleController extends Controller
             if($result['data']){
                 $classId=$result['data'][0]['clazzId'];
 
-                $studentHttp= http('order/coach/all/student/by/'.$orderId.'/'.$classId.'/'.$type, 'get', $this->authUsername);
+                //$studentHttp= http('order/coach/all/student/by/'.$orderId.'/'.$classId.'/'.$type, 'get', $this->authUsername);
+                $studentHttp= http('order/coach/all/student/by/'.$orderId.'/'.$classId.'/'.$type, 'get', $this->authUsername,array('stuName'=>''));
                 $students=formatResponse($studentHttp);
                 if($students['status']==1){
                     $result['students']=$students['data'];
@@ -436,9 +437,11 @@ class ImsSaleController extends Controller
         $orderId=Req::post('orderId');
         $type=Req::post('type');
         $classId=Req::post('classId');
+        $stuName=Req::post('studentName')?Req::post('studentName'):'';
         $result['status']=0;
 
-        $studentHttp= http('order/coach/all/student/by/'.$orderId.'/'.$classId.'/'.$type, 'get', $this->authUsername);
+       // $studentHttp= http('order/coach/all/student/by/'.$orderId.'/'.$classId.'/'.$type, 'get', $this->authUsername);
+        $studentHttp= http('order/coach/all/student/by/'.$orderId.'/'.$classId.'/'.$type, 'get', $this->authUsername,array('stuName'=>$stuName));
         $students=formatResponse($studentHttp);
         if($students['status']==1){
             $result['status']=1;
@@ -3002,7 +3005,8 @@ class ImsSaleController extends Controller
             if($result['data']){
                 $classId=$result['data'][0]['clazzId'];
 
-                $studentHttp= http('order-trial-delete/coach/student-list/'.$orderId.'/'.$classId, 'get', $this->authUsername);
+               // $studentHttp= http('order-trial-delete/coach/student-list/'.$orderId.'/'.$classId, 'get', $this->authUsername);
+                $studentHttp= http('order-trial-delete/coach/student-list/'.$orderId.'/'.$classId, 'get', $this->authUsername,array('stuName'=>''));
                 $students=formatResponse($studentHttp);
                 if($students['status']==1){
                     $result['students']=$students['data'];
@@ -3015,9 +3019,11 @@ class ImsSaleController extends Controller
     public function actionGetDeleteStudentByClassIdOrderId(){
         $orderId=Req::post('orderId');
         $classId=Req::post('classId');
+        $studentName=Req::post('studentName')?Req::post('studentName'):'';
         $result['status']=0;
-
-        $studentHttp= http('order-trial-delete/coach/student-list/'.$orderId.'/'.$classId, 'get', $this->authUsername);
+        $url='order-trial-delete/coach/student-list/'.$orderId.'/'.$classId;
+       // $studentHttp= http('order-trial-delete/coach/student-list/'.$orderId.'/'.$classId, 'get', $this->authUsername);
+        $studentHttp= http($url, 'get', $this->authUsername,array('stuName'=>$studentName));
         $students=formatResponse($studentHttp);
         if($students['status']==1){
             $result['status']=1;