|
|
@@ -746,10 +746,11 @@ class OrderController extends ProducerBaseController |
|
|
|
$producerManager = $this->getProducerManager(); |
|
|
|
|
|
|
|
$user = GlobalParam::getCurrentUser(); |
|
|
|
$userProducer = $userProducerManager->findOneUserProducer($user, $producer); |
|
|
|
|
|
|
|
if ($user && !$userProducer) { |
|
|
|
$userProducer = $producerManager->addUser($user, $producer); |
|
|
|
if($user) { |
|
|
|
$userProducer = $userProducerManager->findOneUserProducer($user, $producer); |
|
|
|
if (!$userProducer) { |
|
|
|
$userProducer = $producerManager->addUser($user, $producer); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$jsonUser = false; |