Settled.php
2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
namespace Shop;
use LibModels\Web\Shop\SettledData;
/**
* 商家入驻的模型
*
* @name SettledModels
* @package shop
* @copyright yoho.inc
* @author xiaoxiao.hao <xiaoxiao.hao@yoho.cn>
*/
class SettledModel
{
public static function insertApply($brandName, $registerStatus, $sellerName, $sellerAddress, $zipCode,
$contacts, $contactPhone, $contactEmail, $sellerRole, $brandWebsite, $onlineShopWebsite, $categoryInfo,
$billingCycle, $warehouseAddress, $producer, $invoiceType, $newCycle, $quarterNum, $supplyCycle, $haveStore,
$storeInfo, $brandMaterial, $goodsMaterial, $uid)
{
return SettledData::insertApply(
$brandName, $registerStatus, $sellerName, $sellerAddress, $zipCode,
$contacts, $contactPhone, $contactEmail, $sellerRole, $brandWebsite, $onlineShopWebsite, $categoryInfo,
$billingCycle, $warehouseAddress, $producer, $invoiceType, $newCycle, $quarterNum, $supplyCycle, $haveStore,
$storeInfo, $brandMaterial, $goodsMaterial, $uid
);
}
public static function getOneCategory()
{
$oneCategory = SettledData::getOneCategory();
if (isset($oneCategory['code']) && $oneCategory['code'] === 200) {
$data = array();
foreach ($oneCategory['data'] as $key => $category) {
$data[$key]['id'] = $category['category_id'];
$data[$key]['name'] = $category['category_name'];
}
$oneCategory['data'] = $data;
}
return $oneCategory;
}
public static function getTwoCategory($id)
{
$twoCategory = SettledData::getTwoCategory($id);
if (isset($twoCategory['code']) && $twoCategory['code'] === 200) {
$data = array();
foreach ($twoCategory['data'] as $key => $category) {
$data[$key]['id'] = $category['category_id'];
$data[$key]['name'] = $category['category_name'];
}
$twoCategory['data'] = $data;
}
return $twoCategory;
}
}