소스 검색

删除订单

DengTao 8 년 전
부모
커밋
4eab24f99c
2개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      www/protected/modules/o2o/controllers/MyOrderController.php
  2. 1 2
      www/protected/modules/o2o/views/myOrder/info.php

+ 2 - 2
www/protected/modules/o2o/controllers/MyOrderController.php

@@ -163,8 +163,8 @@ class MyOrderController extends CController {
         if (!$order_obj || !$flag) {
             O2oApp::response(false, '用户或订单ID错误', []);
         }
-
-        $order_obj->signUrl = $url;
+        $url = get_object_vars(json_decode($url));
+        $order_obj->signUrl = 'http://odulcd8g1.bkt.clouddn.com/'.$url['hash'];
         $order_obj->status = 6;
         $success = $order_obj->save();
         O2oApp::response($success, '保存失败,请重试', []);

+ 1 - 2
www/protected/modules/o2o/views/myOrder/info.php

@@ -224,8 +224,7 @@
         //已完成
         $('#has_come_container').click(function () {
             /*调出手写板*/
-            $('#has_come_container').addClass('am-hide');
-            $('#has_come_success').removeClass('am-hide');
+
             $('#pics').css('display', 'block');
             $('.js-signature').eq(0).on('jq.signature.changed', function () {
                 $('#saveBtn').attr('disabled', false);