用户端加密开启,订单发货状态判断修改
This commit is contained in:
@@ -345,7 +345,7 @@ class OrderController extends BaseAdminController
|
||||
if (!$ProductOrder) throw new Exception('产品订单不存在');
|
||||
|
||||
$Prescription=Prescription::find()->where(['id'=>$ProductOrder['p_id'],'is_deleted'=>0])->one();
|
||||
if ($Prescription['status']!=1){
|
||||
if ($Prescription['status']!=1 && $Prescription['status']!=4){
|
||||
throw new Exception('处方未通过,不能发货');
|
||||
}
|
||||
$ProductOrder->is_send = 1;
|
||||
|
||||
@@ -18,11 +18,11 @@ class JsonResponseFormatter extends \yii\web\JsonResponseFormatter
|
||||
if (empty($data)) {
|
||||
$data = [];
|
||||
} else {
|
||||
// if (array_key_exists('list', $data)) {
|
||||
// $data['list'] = self::aseEncode($data['list']);
|
||||
// } else {
|
||||
// $data = self::aseEncode($data);
|
||||
// }
|
||||
if (array_key_exists('list', $data)) {
|
||||
$data['list'] = self::aseEncode($data['list']);
|
||||
} else {
|
||||
$data = self::aseEncode($data);
|
||||
}
|
||||
}
|
||||
|
||||
return ['data'=>$data,'errcode'=>$errno,'msg'=>$msg];
|
||||
|
||||
Reference in New Issue
Block a user