|
@@ -242,7 +242,8 @@ class orderLogic
|
|
|
* @param string $user 操作人
|
|
|
* @return array
|
|
|
*/
|
|
|
- public function changeOrderSend($order_info, $role, $user = '', $post = array()) {
|
|
|
+ public function changeOrderSend($order_info, $role, $user = '', $post = array())
|
|
|
+ {
|
|
|
$order_id = $order_info['order_id'];
|
|
|
$model_order = Model('order');
|
|
|
try {
|
|
@@ -257,7 +258,10 @@ class orderLogic
|
|
|
|
|
|
$condition = array();
|
|
|
$condition['order_id'] = $order_id;
|
|
|
- $condition['store_id'] = $_SESSION['store_id'];
|
|
|
+ $store_id = intval($_SESSION['store_id']);
|
|
|
+ if($store_id <= 0) {
|
|
|
+ $condition['store_id'] = intval($post['store_id']);
|
|
|
+ }
|
|
|
$update = $model_order->editOrderCommon($data,$condition);
|
|
|
if (!$update) {
|
|
|
throw new Exception('操作失败');
|