Initial commit

This commit is contained in:
易焱
2021-04-18 18:51:51 +08:00
commit ec705f2fa8
3240 changed files with 623103 additions and 0 deletions
@@ -0,0 +1,17 @@
<?php
namespace Shop\Model;
use Think\Model\RelationModel;
class ShopCartModel extends RelationModel{
//关联模型
Protected $_link=array(
"cms_product"=>array(
'mapping_type' => self::BELONGS_TO,
'foreign_key' => 'product_id',
),
"cat"=>array(
'mapping_type' => self::BELONGS_TO,
'foreign_key' => 'catid',
),
);
}