作者 sgj
1 个管道 的构建 失败 耗费 1 秒

修改志愿者列表

@@ -47,6 +47,11 @@ class OrderModel extends Model @@ -47,6 +47,11 @@ class OrderModel extends Model
47 ->where($map) 47 ->where($map)
48 ->find(); 48 ->find();
49 $goodModel=new GoodsModel(); 49 $goodModel=new GoodsModel();
  50 + $order_info['remark']=cmf_replace_content_file_url(htmlspecialchars_decode($order_info['remark']));
  51 + $order_info['content_info']=cmf_replace_content_file_url(htmlspecialchars_decode($order_info['content_info']));
  52 + $order_info['reason']=cmf_replace_content_file_url(htmlspecialchars_decode($order_info['reason']));
  53 +
  54 +
50 $order_info['good']=$goodModel->getGoods($order_info['good_id']); 55 $order_info['good']=$goodModel->getGoods($order_info['good_id']);
51 return $order_info; 56 return $order_info;
52 } 57 }
@@ -1019,7 +1019,7 @@ class SecondController extends RestBaseController @@ -1019,7 +1019,7 @@ class SecondController extends RestBaseController
1019 * @method POST 1019 * @method POST
1020 * 1020 *
1021 * 1021 *
1022 - *@param name:type type:int require:1 other: desc:类型0,待审核1,已发放 1022 + *@param name:type type:int require:1 other: desc:类型-1,已拒绝0,待审核1,已发放
1023 *@header name:XX-Token require:1 default: desc:token 1023 *@header name:XX-Token require:1 default: desc:token
1024 * 1024 *
1025 * 1025 *
@@ -1038,6 +1038,7 @@ class SecondController extends RestBaseController @@ -1038,6 +1038,7 @@ class SecondController extends RestBaseController
1038 if (!empty($list)){ 1038 if (!empty($list)){
1039 foreach ($list as $k=>$v){ 1039 foreach ($list as $k=>$v){
1040 $list[$k]['pic']=cmf_get_image_url($v['pic']); 1040 $list[$k]['pic']=cmf_get_image_url($v['pic']);
  1041 +
1041 } 1042 }
1042 } 1043 }
1043 $this->success('',$data); 1044 $this->success('',$data);
@@ -1056,6 +1057,9 @@ class SecondController extends RestBaseController @@ -1056,6 +1057,9 @@ class SecondController extends RestBaseController
1056 * 1057 *
1057 *@return order_sn:订单号 1058 *@return order_sn:订单号
1058 *@return content_info:虚拟订单信息 1059 *@return content_info:虚拟订单信息
  1060 + *@return remark:备注信息
  1061 + *@return reason:拒绝原因
  1062 + *@return content_info:虚拟订单信息
1059 *@return is_real:是否为虚拟订单 1063 *@return is_real:是否为虚拟订单
1060 *@return expend:消耗工时 1064 *@return expend:消耗工时
1061 *@return good:商品信息 1065 *@return good:商品信息
@@ -62,6 +62,9 @@ class OrderController extends AdminBaseController @@ -62,6 +62,9 @@ class OrderController extends AdminBaseController
62 public function editPost(){ 62 public function editPost(){
63 $id = input('id'); 63 $id = input('id');
64 $data=input(); 64 $data=input();
  65 + $data['content_info']=htmlspecialchars(cmf_replace_content_file_url(htmlspecialchars_decode($data['content_info']), true));
  66 + $data['remark']=htmlspecialchars(cmf_replace_content_file_url(htmlspecialchars_decode($data['remark']), true));
  67 + $data['reason']=htmlspecialchars(cmf_replace_content_file_url(htmlspecialchars_decode($data['reason']), true));
65 $result=db('orders')->where('id',$id)->update($data); 68 $result=db('orders')->where('id',$id)->update($data);
66 if ($result){ 69 if ($result){
67 $this->success('编辑成功'); 70 $this->success('编辑成功');
@@ -82,7 +82,7 @@ @@ -82,7 +82,7 @@
82 <tr> 82 <tr>
83 <th width="100">备注信息<span class="form-required">*</span></th> 83 <th width="100">备注信息<span class="form-required">*</span></th>
84 <td> 84 <td>
85 - <script type="text/plain" id="content2" name="content_info">{:cmf_replace_content_file_url(htmlspecialchars_decode($data.remark))}</script> 85 + <script type="text/plain" id="content2" name="remark">{:cmf_replace_content_file_url(htmlspecialchars_decode($data.remark))}</script>
86 </td> 86 </td>
87 </tr> 87 </tr>
88 88
@@ -91,7 +91,7 @@ @@ -91,7 +91,7 @@
91 <tr> 91 <tr>
92 <th width="100">发放内容<span class="form-required">*</span></th> 92 <th width="100">发放内容<span class="form-required">*</span></th>
93 <td> 93 <td>
94 - <script type="text/plain" id="content" name="content_info">{:cmf_replace_content_file_url(htmlspecialchars_decode($data.content))}</script> 94 + <script type="text/plain" id="content" name="content_info">{:cmf_replace_content_file_url(htmlspecialchars_decode($data.content_info))}</script>
95 </td> 95 </td>
96 </tr> 96 </tr>
97 </if> 97 </if>
@@ -99,7 +99,7 @@ @@ -99,7 +99,7 @@
99 <tr> 99 <tr>
100 <th width="100">拒绝原因<span class="form-required"></span></th> 100 <th width="100">拒绝原因<span class="form-required"></span></th>
101 <td> 101 <td>
102 - <script type="text/plain" id="content1" name="content_info">{:cmf_replace_content_file_url(htmlspecialchars_decode($data.reason))}</script> 102 + <script type="text/plain" id="content1" name="reason">{:cmf_replace_content_file_url(htmlspecialchars_decode($data.reason))}</script>
103 </td> 103 </td>
104 </tr> 104 </tr>
105 105