Authored by whb

setComplain参数有问题

@@ -163,7 +163,7 @@ class CustomController extends QLib_Actions_Default { @@ -163,7 +163,7 @@ class CustomController extends QLib_Actions_Default {
163 $id= $this->_post("id"); 163 $id= $this->_post("id");
164 $content= htmlspecialchars( $this->_post("content")); 164 $content= htmlspecialchars( $this->_post("content"));
165 $code= $this->_post("code"); 165 $code= $this->_post("code");
166 - $return= YHMOrders_Models_Complain_Client::setComplain($code, 3, $uid, $content, "",$id) ; 166 + $return= YHMOrders_Models_Complain_Client::setComplain($code, $uid, 3, $content, "",$id) ;
167 if ($return) 167 if ($return)
168 { 168 {
169 YHMOrders_Models_Complain_Client::editComplainStatus($id,1,$code); 169 YHMOrders_Models_Complain_Client::editComplainStatus($id,1,$code);
@@ -41,16 +41,16 @@ class YHMOrders_Models_Complain_Client { @@ -41,16 +41,16 @@ class YHMOrders_Models_Complain_Client {
41 /** 41 /**
42 * 添加投诉 42 * 添加投诉
43 * @param int $order_code 43 * @param int $order_code
44 - * @param int $user_type  
45 * @param int $uid 44 * @param int $uid
  45 + * @param int $user_type
46 * @param string $content 46 * @param string $content
47 * @param string $image_path 47 * @param string $image_path
48 */ 48 */
49 - static function setComplain($order_code, $user_type, $uid, $content, $image_path,$pid = 0) { 49 + static function setComplain($order_code, $uid, $user_type, $content, $image_path,$pid = 0) {
50 if ((int) $order_code < 1 || (int) $uid < 1) { 50 if ((int) $order_code < 1 || (int) $uid < 1) {
51 return 0; 51 return 0;
52 } 52 }
53 - return self::dao()->setComplain( $order_code, (int) $uid, $user_type, $content, $image_path, $pid); 53 + return self::dao()->setComplain( $order_code, $uid, $user_type, $content, $image_path, $pid);
54 } 54 }
55 /* 55 /*
56 * 获取投诉信息 56 * 获取投诉信息