Initial commit

This commit is contained in:
易焱
2021-03-13 18:42:01 +08:00
commit d9a3c376d5
3243 changed files with 627198 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',
),
);
}