接口修改
This commit is contained in:
@@ -1752,10 +1752,10 @@ return null;
|
|||||||
if(empty($aArticle)){
|
if(empty($aArticle)){
|
||||||
return jsonError('No article information found');
|
return jsonError('No article information found');
|
||||||
}
|
}
|
||||||
$iIsBuy = empty($aArticle['is_buy']) ? 0 : $aArticle['is_buy'];
|
// $iIsBuy = empty($aArticle['is_buy']) ? 0 : $aArticle['is_buy'];
|
||||||
if($iIsBuy != 1){
|
// if($iIsBuy != 1){
|
||||||
return jsonError('Article unpaid');
|
// return jsonError('Article unpaid');
|
||||||
}
|
// }
|
||||||
$aWhere = ['article_id' => $iArticleId,'state' => 0];
|
$aWhere = ['article_id' => $iArticleId,'state' => 0];
|
||||||
$aProductionArticle = $this->production_article_obj->field('p_article_id')->where($aWhere)->find();
|
$aProductionArticle = $this->production_article_obj->field('p_article_id')->where($aWhere)->find();
|
||||||
if(!empty($aProductionArticle)) {
|
if(!empty($aProductionArticle)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user